From b0d828331e24f91475a18f05403e99469c4fc933 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Sat, 1 Nov 2014 21:14:27 +0100 Subject: [PATCH] Add a script to run the UI Experimental... --- packaging/plasma-phone-components.spec | 15 ++++++++++++++- packaging/plasma-phone-components.yaml | 1 + services/plasma-phone-ui.service | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 services/plasma-phone-ui.service 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