Installing Python-based plasmoids globally

Harald Sitter sitter at kde.org
Mon Sep 3 11:50:22 UTC 2012


On Sun, Sep 2, 2012 at 8:54 PM, Karl Ove Hufthammer <karl at huftis.org> wrote:
> I’ve created a Python-based plasmoid, using the instructions at
> http://techbase.kde.org/Development/Tutorials/Plasma/Python/GettingStarted
> but am having some trouble getting it installed (globally). I couldn’t
> find any documentation on how to actually do this, but looking at other
> installed packages, I figured that I should install the directory tree
>
>   metadata.desktop
>   contents/code/main.py
>
> into
>
>   /usr/share/kde4/apps/plasma/plasmoids/appname
>
> I have tried doing this and then running kbuildsyscoca4, but it seems to
> have no effect; i.e., the appname plasmoid doesn’t appear in the list of
> plasmoids.
>
> So how should I properly install the plasmoid to make it show up? (Note
> that creating a zip file and using plasmapkg to install it works fine,
> but this only install the plasmoid in the current user’s directory, and
> requires X running, so I don’t want to do this.)

You'll also need to copy the desktop file to
$PREFIX/services/$NAME.desktop

e.g. /usr/share/kde4/services/foobar.desktop

(btw, that is also what plasmapkg does)

HS


More information about the Plasma-devel mailing list