Skip to content
This repository was archived by the owner on Dec 17, 2017. It is now read-only.

How to create panel plugin

SokoloffA edited this page Feb 20, 2012 · 8 revisions

##Some theory

Plugin for the panel is a library written on C++. One more necessary thing is a .desktop file describing this plugin. The same may be additional files, like translations. Themselves plugins will be installed to /usr/local/lib/razor-panel or /usr/lib/razor-panel (dependent on cmake option -DCMAKEINSTALL_PREFFIX). Desktop files are installed to /usr/local/share/razor/razor-panel, translations to /usr/local/share/razor/razor-panel/PLUGIN_NAME.

To build, you need the source tree, the latest version can be downloaded from the GIT git clone git://github.com/Razor-qt/razor-qt.git or as an archive from here. The source plug-ins for the panel are in the subdirectory razorqt-panel.

Let's write a simple plugin - helloworld. Create a directory razorqt-panel/plugin-helloworld. Cmake project cannot have two sub-project with the same name, and one sub-project helloworld is already there, so we have to use weird "panelhelloworld".

Clone this wiki locally