shift-shell/services/plasma-phone-ui.service.cmake
Pier Luigi Fiorini fb865c86da Set DBUS_SESSION_BUS_ADDRESS directly on services
Rather than from environment configuration file so that systemd will
expand %t.
2014-11-03 18:35:33 +01:00

20 lines
536 B
CMake

#
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
#
# Starts Plasma shell for phones.
#
[Unit]
Description=Plasma Phone UI
Requires=dbus.socket plasma-phone-compositor.service
[Service]
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=%t/dbus/user_bus_socket
EnvironmentFile=-/var/lib/environment/plasma-phone/*.conf
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/plasma-phone
ExecStop=@CMAKE_INSTALL_FULL_BINDIR@/kquitapp5 plasmashell
Restart=on-failure
BusName=org.kde.plasmashell
[Install]
WantedBy=user-session.target