dbus service install on windows

Ralf Habacker ralf.habacker at googlemail.com
Tue Oct 18 20:48:37 UTC 2011


Hi all,

with the recent kde-runtime (and other) buildsystems there are problems 
installing dbus service files, which need to be fixed.

In 
https://projects.kde.org/projects/kde/kde-runtime/repository/revisions/master/entry/knotify/org.kde.knotify.service.cmake 
there is CMAKE_INSTALL_PREFIX/bin prefix used, which do not work in 
windows enviroment, where the build install root is not equal to the 
client install root.

On recent windows builds dbus services executables are installed in the 
same location as dbus-daemon and other executables, so a './' prefix 
should work.

Are there any objections to add an additional KDE_... DIR variable in 
KDE4Internal.cmake for this, something like

KDE4_DBUS_SERVICE_BIN_DIR         - the directory where dbus services 
are installed which could be used in the service files.

which has to be set to

     if (WIN32)
         set (KDE_DBUS_SERVICE_BIN_DIR .)
     else(WIN32)
         set (KDE_DBUS_SERVICE_BIN_DIR ${CMAKE_INSTALL_PREFIX}/bin)
     endif(WIN32)

and to use in service files like shown below:

*[D-BUS Service]
Name=org.kde.knotify
Exec=@*KDE4_DBUS_SERVICE_BIN_DIR@/*knotify4
*


Regards
  Ralf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20111018/b6009552/attachment-0001.html>


More information about the Kde-buildsystem mailing list