Commit da636fb4 authored by Henri Chain's avatar Henri Chain 🛰

Makes the polkit agent started by systemd when systemd boot is enabled.

Disables auto generation of a service file by recent systemd

Will need to add `Wants=plasma-polkit-agent.service` to `plasma-workspace@.target`
parent 2f70fe32
......@@ -15,6 +15,7 @@ include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEClangFormat)
include(FeatureSummary)
include(ECMConfiguredInstall)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets)
......@@ -90,6 +91,8 @@ install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${KDE_INSTALL_LIBE
install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} RENAME org.kde.polkit-kde-authentication-agent-1.desktop)
ecm_install_configured_files(INPUT plasma-polkit-agent.service.in DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR})
install(FILES policykit1-kde.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})
# add clang-format target for all our real source files
......
[Unit]
Description=KDE PolicyKit Authentication Agent
PartOf=graphical-session.target
[Service]
ExecStart=@KDE_INSTALL_FULL_LIBEXECDIR@/polkit-kde-authentication-agent-1
BusName=org.kde.Polkit1AuthAgent
Slice=background.slice
After=plasma-core.target
TimeoutSec=5sec
Restart=on-failure
......@@ -90,3 +90,4 @@ X-KDE-StartupNotify=false
X-KDE-autostart-phase=0
NoDisplay=true
X-DBUS-StartupType=Unique
X-systemd-skip=true
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