From 9b8fdbe99393a854d80531e883da5552b5906d52 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Wed, 29 Oct 2014 00:48:54 +0100 Subject: [PATCH] Add more services --- packaging/plasma-phone-components.spec | 10 ++++------ services/plasma-phone-compositor.service | 2 +- services/plasma-phone-kbuildsycoca5.service | 17 +++++++++++++++++ services/plasma-phone-kded5.service | 18 ------------------ services/plasma-phone-kdeinit.service | 19 +++++++++++++++++++ services/plasma-phone-ksyncdbusenv.service | 17 +++++++++++++++++ services/plasma-phone-shell.service | 11 +++++------ 7 files changed, 63 insertions(+), 31 deletions(-) create mode 100644 services/plasma-phone-kbuildsycoca5.service delete mode 100644 services/plasma-phone-kded5.service create mode 100644 services/plasma-phone-kdeinit.service create mode 100644 services/plasma-phone-ksyncdbusenv.service diff --git a/packaging/plasma-phone-components.spec b/packaging/plasma-phone-components.spec index e4e68f82..64c65768 100644 --- a/packaging/plasma-phone-components.spec +++ b/packaging/plasma-phone-components.spec @@ -100,12 +100,10 @@ EOF # Install systemd units mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/ -install -D -m 644 services/plasma-phone-compositor.service %{buildroot}%{_libdir}/systemd/user/plasma-phone-compositor.service -install -D -m 644 services/plasma-phone-shell.service %{buildroot}%{_libdir}/systemd/user/plasma-phone-shell.service -install -D -m 644 services/plasma-phone-kded5.service %{buildroot}%{_libdir}/systemd/user/plasma-phone-kded5.service -ln -s ../plasma-phone-compositor.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/plasma-phone-compositor.service -ln -s ../plasma-phone-shell.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/plasma-phone-shell.service -ln -s ../plasma-phone-kded5.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/plasma-phone-kded5.service +for service in compositor kbuildsycoca5 kdeinit ksyncdbusenv shell; do + install -D -m 644 services/plasma-phone-${service}.service %{buildroot}%{_libdir}/systemd/user/plasma-phone-${service}.service + ln -s ../plasma-phone-${service}.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/plasma-phone-${service}.service +done # << install post diff --git a/services/plasma-phone-compositor.service b/services/plasma-phone-compositor.service index ab1f73ef..6037244b 100644 --- a/services/plasma-phone-compositor.service +++ b/services/plasma-phone-compositor.service @@ -1,5 +1,5 @@ # -# Copyright (C) 2014 Pier Luigi Fiorini +# Copyright (C) 2014 Pier Luigi Fiorini # # Starts Green Island with the phone compositor plugin. # diff --git a/services/plasma-phone-kbuildsycoca5.service b/services/plasma-phone-kbuildsycoca5.service new file mode 100644 index 00000000..6f6f1ba4 --- /dev/null +++ b/services/plasma-phone-kbuildsycoca5.service @@ -0,0 +1,17 @@ +# +# Copyright (C) 2014 Pier Luigi Fiorini +# +# Starts kbuildsycoca5 needed by the phone UI. +# + +[Unit] +Description=kbuildsycoca5 +Requires=dbus.socket + +[Service] +Type=oneshot +ExecStart=/usr/bin/kbuildsycoca5 +Restart=always + +[Install] +WantedBy=user-session.target diff --git a/services/plasma-phone-kded5.service b/services/plasma-phone-kded5.service deleted file mode 100644 index 8a3ae490..00000000 --- a/services/plasma-phone-kded5.service +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (C) 2014 Pier Luigi Fiorini -# -# Starts kded5 needed by the phone UI. -# - -[Unit] -Description=KDED5 -Requires=dbus.socket - -[Service] -Type=notify -EnvironmentFile=-/var/lib/environment/plasma-phone/*.conf -ExecStart=/usr/bin/kded5 -Restart=always - -[Install] -WantedBy=user-session.target diff --git a/services/plasma-phone-kdeinit.service b/services/plasma-phone-kdeinit.service new file mode 100644 index 00000000..2dabcc57 --- /dev/null +++ b/services/plasma-phone-kdeinit.service @@ -0,0 +1,19 @@ +# +# Copyright (C) 2014 Pier Luigi Fiorini +# +# Starts kdeinit needed by the phone UI. +# + +[Unit] +Description=kdeinit +Requires=dbus.socket + +[Service] +Type=oneshot +Environment=LD_BIND_NOW=true +EnvironmentFile=-/var/lib/environment/plasma-phone/*.conf +ExecStart=/usr/lib/libexec/kf5/start_kdeinit_wrapper --kded +kcminit_startup +Restart=always + +[Install] +WantedBy=user-session.target diff --git a/services/plasma-phone-ksyncdbusenv.service b/services/plasma-phone-ksyncdbusenv.service new file mode 100644 index 00000000..764acf37 --- /dev/null +++ b/services/plasma-phone-ksyncdbusenv.service @@ -0,0 +1,17 @@ +# +# Copyright (C) 2014 Pier Luigi Fiorini +# +# Starts ksyncdbus needed by the phone UI. +# + +[Unit] +Description=ksyncdbusenv +Requires=dbus.socket + +[Service] +Type=oneshot +ExecStart=/usr/lib/libexec/ksyncdbusenv +Restart=always + +[Install] +WantedBy=user-session.target diff --git a/services/plasma-phone-shell.service b/services/plasma-phone-shell.service index 6214142d..86664e6a 100644 --- a/services/plasma-phone-shell.service +++ b/services/plasma-phone-shell.service @@ -1,18 +1,17 @@ # -# Copyright (C) 2014 Pier Luigi Fiorini +# Copyright (C) 2014 Pier Luigi Fiorini # -# Starts Green Island with the phone compositor plugin. +# Starts Plasma shell for phones. # [Unit] Description=Plasma Phone UI -Requires=dbus.socket plasma-phone-compositor.service -After=plasma-phone-kded5.service +Requires=dbus.socket +After=plasma-phone-compositor.service plasma-phone-ksyncdbusenv.service plasma-phone-kbuildsycoca.service plasma-phone-kdeinit.service [Service] -Type=notify EnvironmentFile=-/var/lib/environment/plasma-phone/*.conf -ExecStart=/usr/bin/plasmashell -n -p org.kde.satellite.phone +ExecStart=/usr/bin/plasmashell -p org.kde.satellite.phone -n Restart=always [Install]