PolicyKit + KDE

Michael Jansen kde at michael-jansen.biz
Wed Sep 2 00:36:49 CEST 2009


On Wednesday 02 September 2009 00:03:47 John Tapsell wrote:
> Hi all,
> 
>   The problem is "make install" in kdelibs/kdebase  has traditionally
> only installed files to your $KDEDIR directory.  However with
> policykit requires files to be installed elsewhere.  For example
> ksysguard now needs to install to:
> 
> /etc/dbus-1/system.d/org.kde.ksysguard.processlisthelper.conf

${SYSCONF_INSTALL_DIR}/dbus-1/systems.d/org.kde.ksysguard.processlisthelper.conf


> /usr/share/dbus-1/system-services/org.kde.ksysguard.processlisthelper.servi
> ce

${DBUS_SYSTEM_SERVICES_INSTALL_DIR}/org.kde.ksysguard.processlisthelper.servi

> /usr/share/PolicyKit/policy/org.kde.ksysguard.processlisthelper.policy

??????

I just noticed this in workspace/kcontrol/kfontinst/kio/CMakeLists.txt

    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} polkit --
variable=policydir
                    OUTPUT_VARIABLE POLICY_DIR)
    string(REGEX REPLACE "[\r\n]" "" POLICY_DIR "${POLICY_DIR}")

    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} dbus-1 --
variable=sysconfdir
                    OUTPUT_VARIABLE DBUS_SYSCONF_DIR)
    string(REGEX REPLACE "[\r\n]" "" DBUS_SYSCONF_DIR "${DBUS_SYSCONF_DIR}")

    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} dbus-1 --
variable=session_bus_services_dir
                    OUTPUT_VARIABLE DBUS_SESSION_SRV_DIR)
    string(REGEX REPLACE "[\r\n]" "" DBUS_SESSION_SRV_DIR 
"${DBUS_SESSION_SRV_DIR}")


I will cc kde-buildsystem where this belongs.

Mike



More information about the Kde-buildsystem mailing list