plasma-mobile and metadata.desktop files

Aaron J. Seigo aseigo at kde.org
Fri Jul 8 10:48:07 CEST 2011


hi...

today i started poking a bit more deeply into the plasma-mobile repository. 
this is the first in a series of emails as a result :)

a lot of stuff is written with QML and using Plasma::Packages. awesome :) 
however, the metada.desktop files in the packages are duplicated with the 
"proper" name (e.g. plasma-applet-somethingorother.desktop).

this is messy, error prone and translators will hate us. so i added a simple 
two line macro to the top level CMakeLists.txt file call 
install_metadata_file. you can now just do:

install_metadata_file(package/metadata.desktop 
                                     plasma-applet-appletstrip.desktop)

and it all magically works without a copy of the .desktop file in the source 
repo.

finally, we really need to get away from names like plasma-applet-
appletstrip.desktop .. they should be universally unique and probably should 
be more like plasma-applet-org.kde.appletstrip.desktop.

finally, a question: why are the items in plasma-mobile/containments/ install 
with a plasma-applet-foo.desktop instead of a plasma-containment-foo.desktop?

-- 
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/20110708/ba500332/attachment.sig 


More information about the Plasma-devel mailing list