diff --git a/packaging/plasma-phone-components.spec b/packaging/plasma-phone-components.spec index 16c899cd..052d67fe 100644 --- a/packaging/plasma-phone-components.spec +++ b/packaging/plasma-phone-components.spec @@ -67,6 +67,16 @@ rm -rf %{buildroot} # >> install post +# Script that runs the UI +mkdir -p %{buildroot}%{_bindir} +cat > %{buildroot}%{_bindir}/plasma-phone << EOF +#!/bin/sh +/usr/bin/kded5 & +sleep 2 +/usr/bin/plasmashell -p org.kde.satellite.phone -n +EOF +chmod 755 %{buildroot}%{_bindir}/plasma-phone + # File with environment variables, used by compositor systemd unit mkdir -p %{buildroot}%{_sharedstatedir}/environment/greenisland cat > %{buildroot}%{_sharedstatedir}/environment/greenisland/greenisland.conf < +# +# Starts Plasma shell for phones. +# + +[Unit] +Description=Plasma Phone UI +Requires=dbus.socket +After=voicecall-manager.service plasma-phone-compositor.service + +[Service] +EnvironmentFile=-/var/lib/environment/plasma-phone/*.conf +ExecStart=/usr/bin/plasma-phone +Restart=always + +[Install] +WantedBy=user-session.target