Running Xorg as a service. #218
-
Im trying to run Xorg as a user service. Practicality of this in my current setup, i admit, is dubious, but i have an itch to make it work. Im running relatively recent
and this is the launcher script (stripped down #!/bin/sh --
tty=$(tty)
tty=${tty#/dev/tty}
dinitctl setenv DISPLAY=:"$tty"
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/sx
mkdir -p -- "$cfgdir" "$datadir"
export XAUTHORITY="${XAUTHORITY:-$datadir/xauthority}"
touch -- "$XAUTHORITY"
xauth add :"$tty" MIT-MAGIC-COOKIE-1 "$(od -An -N16 -tx /dev/urandom | tr -d ' ')"
Xorg :"$tty" -keeptty vt"$tty" -noreset -auth "$XAUTHORITY" -displayfd "$DINIT_READYFD" the issue is that when |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello. Take a look at |
Beta Was this translation helpful? Give feedback.
-
One obvious problem that I can see is the |
Beta Was this translation helpful? Give feedback.
-
One thing i missed is |
Beta Was this translation helpful? Give feedback.
Computers are magic.