Updated for phosh

This commit is contained in:
2023-01-07 23:10:25 +01:00
parent 32cf9f3e0f
commit d663432c9b
5 changed files with 34 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
OSK=/usr/bin/virtboard
if [ -x /usr/bin/squeekboard ]; then
OSK=/usr/bin/squeekboard
fi
exec $OSK

View File

@@ -2,10 +2,15 @@
Description=Phosh, a shell for mobile phones
Documentation=https://gitlab.gnome.org/World/Phosh/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
# replaces the getty
Conflicts=getty@tty1.service
After=getty@tty1.service
# Needs all the dependencies of the services it's replacing
# (currently getty@tty1.service):
After=rc-local.service plymouth-quit-wait.service systemd-user-sessions.service
OnFailure=getty@tty1.service
# D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket
@@ -26,7 +31,7 @@ ConditionPathExists=/dev/tty0
[Service]
Environment=LANG=C.UTF-8
Environment=XDG_CURRENT_DESKTOP=GNOME:Phosh
Environment=XDG_CURRENT_DESKTOP=Phosh:GNOME
Environment=XDG_SESSION_DESKTOP=phosh
Environment=XDG_SESSION_TYPE=wayland
ExecStart=/usr/bin/phosh