Commit 4e0c2655 authored by Henri Chain's avatar Henri Chain 🛰

systemd dbus activation

parent 6f615490
......@@ -31,6 +31,8 @@ include (KDEInstallDirs)
include (KDECMakeSettings)
include (KDECompilerSettings NO_POLICY_SCOPE)
include (GenerateExportHeader)
include (ECMConfiguredInstall)
include (ECMGenerateDBusServiceFile)
include (ECMGenerateHeaders)
include (ECMQtDeclareLoggingCategory)
include (ECMSetupQtPluginMacroNames)
......
......@@ -53,10 +53,18 @@ else ()
)
endif ()
configure_file(org.kde.activitymanager.service.in
${CMAKE_CURRENT_BINARY_DIR}/org.kde.activitymanager.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.activitymanager.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
# D-Bus activation service file, and associated systemd service
ecm_generate_dbus_service_file(
NAME org.kde.ActivityManager
EXECUTABLE "${KDE_INSTALL_FULL_LIBEXECDIR}/kactivitymanagerd"
SYSTEMD_SERVICE plasma-kactivitymanagerd.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}
)
ecm_install_configured_files(
INPUT plasma-kactivitymanagerd.service.in
DESTINATION ${KDE_INSTALL_SYSTEMDUNITDIR}
)
ecm_qt_declare_logging_category(debug_SRCS
HEADER DebugActivities.h
......
[D-BUS Service]
Name=org.kde.ActivityManager
Exec=${KDE_INSTALL_FULL_LIBEXECDIR}/kactivitymanagerd
[Unit]
Description=KActivityManager Activity manager Service
[Service]
ExecStart=@KDE_INSTALL_FULL_LIBEXECDIR@/kactivitymanagerd
BusName=org.kde.ActivityManager
Slice=background.slice
  • This installs it as a system service. Shouldn't this be installed as a user service, like everything else in Plasma?

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment