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.
wilder-5.22
David Edmundson 6 years ago
parent ba6110626c
commit a892e8681d
  1. 1
      ksmserver/CMakeLists.txt
  2. 9
      ksmserver/plasma-restoresession.service.in
  3. 2
      startkde/systemd/plasma-workspace@.target

@ -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})

@ -0,0 +1,9 @@
[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

Loading…
Cancel
Save