mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
Add more services
This commit is contained in:
parent
dbda61e030
commit
9b8fdbe993
7 changed files with 63 additions and 31 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
#
|
||||
# Starts Green Island with the phone compositor plugin.
|
||||
#
|
||||
|
|
|
|||
17
services/plasma-phone-kbuildsycoca5.service
Normal file
17
services/plasma-phone-kbuildsycoca5.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
#
|
||||
# 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
|
||||
|
|
@ -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
|
||||
19
services/plasma-phone-kdeinit.service
Normal file
19
services/plasma-phone-kdeinit.service
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
#
|
||||
# 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
|
||||
17
services/plasma-phone-ksyncdbusenv.service
Normal file
17
services/plasma-phone-ksyncdbusenv.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
#
|
||||
# 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
|
||||
|
|
@ -1,18 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini
|
||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
#
|
||||
# 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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue