Skip to content
Snippets Groups Projects
Commit b86bdee1 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

Merge branch 'systemd-unit' into 'master'

Add systemd unit

See merge request Librem5/phosh!73
parents b60d7eb6 15bc0162
No related branches found
No related tags found
No related merge requests found
/usr/lib/phosh
/usr/share/phosh
weston.ini
rootston.ini rootston.ini
[Unit]
Description=Phosh, a shell for mobile phones
Documentation=https://source.puri.sm/Librem5/phosh
# Make sure we are started after logins are permitted.
After=systemd-user-sessions.service
# If Plymouth is used, we want to start when it is on its way out.
After=plymouth-quit-wait.service
# D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket
After=dbus.socket
# This scope is created by pam_systemd when logging in as the user.
# This directive is a workaround to a systemd bug, where the setup of the
# user session by PAM has some race condition, possibly leading to a failure.
# See README for more details.
After=session-c1.scope
# Since we are part of the graphical session, make sure we are started before
# it is complete.
Before=graphical.target
# Prevent starting on systems without virtual consoles
ConditionPathExists=/dev/tty0
[Service]
ExecStart=/usr/lib/wlroots/rootston -E /usr/lib/phosh/phosh -C /usr/share/phosh/rootston.ini
TimeoutStartSec=60
User=purism
PAMName=login
WorkingDirectory=/home/purism
# A virtual terminal is needed.
TTYPath=/dev/tty7
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
# Fail to start if not controlling the tty.
StandardInput=tty-fail
StandardOutput=journal
StandardError=journal
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
UtmpIdentifier=tty7
UtmpMode=user
[Install]
WantedBy=graphical.target
...@@ -8,8 +8,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all ...@@ -8,8 +8,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
override_dh_auto_install: override_dh_auto_install:
dh_auto_install dh_auto_install
# Move phosh to arch indep dir # Move phosh to arch indep dir
mkdir -p debian/phosh/usr/lib/phosh
mv debian/phosh/usr/lib/*/phosh debian/phosh/usr/lib/phosh/phosh mv debian/phosh/usr/lib/*/phosh debian/phosh/usr/lib/phosh/phosh
cp rootston.ini debian/phosh/usr/share/phosh/
override_dh_installsystemd:
dh_installsystemd --no-start --no-enable
override_dh_auto_test: override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
......
[shell]
client=_build/src/phosh
focus-animation=dim-layer
animation=zoom
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment