commit b89e1e8a5087cb3285a986816325a08a44a787b0
parent cf8d703bfdc77f311c8dec977d3803a465cb19dc
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Fri, 5 Mar 2021 16:53:31 +0000
Let user poll for X service readiness.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sbin/logincaps b/sbin/logincaps
@@ -48,6 +48,9 @@ run_x() {
[[ $X == $1 ]] || return 2
shift
truncate -s 0 /run/Xauthority.$X &&
+ # TODO: replace the 2 lines below with s6-svperm after updating s6
+ chgrp -R -- $USER /run/service/X$X/{event,supervise} &&
+ chmod 750 /run/service/X$X/supervise &&
s6-svc -wU -T 8000 -o /run/service/X$X &&
chmod 640 /run/Xauthority.$X &&
chown xorg:$USER /run/Xauthority.$X &&