Created
June 24, 2023 08:40
-
-
Save Geofferey/49fbfc1167bbe9f2229da4d396a9038e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Weston Wayland Compositor (on tty7) | |
RequiresMountsFor=/run | |
[email protected] plymouth-quit.service | |
After=systemd-user-sessions.service [email protected] plymouth-quit-wait.service gdm3.service waydroid-container.service | |
[Service] | |
User=geofferey | |
WorkingDirectory=/home/geofferey | |
PermissionsStartOnly=true | |
Restart=always | |
# Log us in via PAM so we get our XDG & co. environment and | |
# are treated as logged in so we can use the tty: | |
PAMName=login | |
# Grab tty7 | |
UtmpIdentifier=tty7 | |
TTYPath=/dev/tty7 | |
TTYReset=yes | |
TTYVHangup=yes | |
TTYVTDisallocate=yes | |
# stderr to journal so our logging doesn't get thrown into /dev/null | |
StandardOutput=tty | |
StandardInput=tty | |
StandardError=journal | |
EnvironmentFile=-/etc/default/weston | |
# Weston does not successfully change VT, nor does systemd place us on | |
# the VT it just activated for us. Switch manually: | |
ExecStartPre=/bin/chvt 7 | |
ExecStart=/usr/bin/waydroid-weston-session.sh | |
IgnoreSIGPIPE=no | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment