mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-14 15:44:47 +02:00
GNOME: pin the Return to Gaming Mode launcher to the dash; relogin waits for the runtime dir
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
f2b5f84526
commit
4f095bd077
2 files changed
+28
-1
No files matched your search
@@ -16,5 +16,7 @@ USER_NAME="$2"
|
||||
# already running!", or the session dies at once), so wait until it is gone.
|
||||
systemctl stop gdm.service
|
||||
loginctl terminate-user "$USER_NAME"
|
||||
for _ in $(seq 120); do loginctl show-user "$USER_NAME" >/dev/null 2>&1 || break; sleep 0.25; done
|
||||
# (not `loginctl show-user`: it still lists the user about 10 s after it is gone)
|
||||
USER_RUNTIME="/run/user/$(id -u "$USER_NAME")"
|
||||
for _ in $(seq 120); do [[ -d "$USER_RUNTIME" ]] || break; sleep 0.25; done
|
||||
systemctl start gdm.service
|
||||
Reference in new issue
Block a user