Commit a892e868 authored by David Edmundson's avatar David Edmundson
Browse files

Add session restore service

KSmserver was split up so this could be invoked at the end of the
session startup. This adds the relevant unit to invoke it.
parent ba611062
......@@ -73,3 +73,4 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/KSMServerDBusInterfaceConfig.cmake
install( FILES org.kde.KSMServerInterface.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
ecm_install_configured_files(INPUT plasma-ksmserver.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR})
ecm_install_configured_files(INPUT plasma-restoresession.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR})
[Unit]
Description=KDE Session Management Server
After=plasma-ksmserver.service plasma-xembedsniproxy.service plasma-gmenudbusmenuproxy.service
[Service]
Type=oneshot
ExecStart=-@QtBinariesDir@/qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.restoreSession
Slice=session.slice
RefuseManualStart=yes
......@@ -2,5 +2,5 @@
Description=KDE Plasma Workspace
Requires=plasma-core@%i.target plasma-ksplash-ready.service
BindsTo=graphical-session.target
Wants=xdg-desktop-autostart.target plasma-xembedsniproxy.service plasma-gmenudbusmenuproxy.service
Wants=xdg-desktop-autostart.target plasma-xembedsniproxy.service plasma-gmenudbusmenuproxy.service plasma-restoresession.service
After=plasma-core.target
Supports Markdown
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