Updated service file

This commit is contained in:
Gerben Jan Dijkman 2021-08-21 20:56:47 +02:00
parent b73d9d209c
commit 477f277c62
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=Phosh, a shell for mobile phones Description=Phosh, a shell for mobile phones
Documentation=https://source.puri.sm/Librem5/phosh Documentation=https://gitlab.gnome.org/World/Phosh/phosh
# Make sure we are started after logins are permitted. # Make sure we are started after logins are permitted.
After=systemd-user-sessions.service After=systemd-user-sessions.service
@ -25,12 +25,16 @@ Before=graphical.target
ConditionPathExists=/dev/tty0 ConditionPathExists=/dev/tty0
[Service] [Service]
Environment=LANG=C.UTF-8
Environment=XDG_CURRENT_DESKTOP=GNOME:Phosh
Environment=XDG_SESSION_DESKTOP=phosh
Environment=XDG_SESSION_TYPE=wayland
ExecStart=/usr/bin/phosh ExecStart=/usr/bin/phosh
TimeoutStartSec=30 TimeoutStartSec=30
User=1000 User=1000
PAMName=login PAMName=login
WorkingDirectory=~ WorkingDirectory=~
Restart=on-failure Restart=always
RestartSec=5s RestartSec=5s
# A virtual terminal is needed. # A virtual terminal is needed.

View File

@ -29,6 +29,7 @@ DEPEND="
media-sound/pulseaudio media-sound/pulseaudio
>=gui-libs/libhandy-1.1.90 >=gui-libs/libhandy-1.1.90
net-misc/networkmanager net-misc/networkmanager
gnome-base/gnome-control-center
gnome-base/gnome-desktop gnome-base/gnome-desktop
gnome-base/gnome-session gnome-base/gnome-session
x11-themes/gnome-backgrounds x11-themes/gnome-backgrounds
@ -37,6 +38,7 @@ DEPEND="
x11-wm/phoc x11-wm/phoc
systemd? ( sys-apps/systemd ) systemd? ( sys-apps/systemd )
sys-power/upower sys-power/upower
app-misc/geoclue
" "
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
BDEPEND=" BDEPEND="