Installing Plasma.Service *.operations file

Aaron J. Seigo aseigo at kde.org
Wed Dec 22 20:15:16 CET 2010


On Wednesday, December 22, 2010, Thomas Olsen wrote:
> An - I suppose - simple question: I need to install an
> <enginename>.operations file together with the dataengine package. Is
> there a standard way of doing this or should I make some hack with
> KGlobal.dirs().localkdedir() and then append 'share/apps/plasma/services'?
> It seems rather hackish but I bet I've missed something very obvious..?

if you are writing your engine in C++, then you do like this in your 
CMakeLists.txt file:

install(FILES filename.operations DESTINATION 
${DATA_INSTALL_DIR}/plasma/services)

if you are writing your engine in Javascript, Python or Ruby then you just 
include the operations file in your package under contents/services/

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101222/1ab76497/attachment.sig 


More information about the Plasma-devel mailing list