dpy number options

This commit is contained in:
aliriza committed 2023-03-15 14:03:14 +00:00
1 parent bd7ac90e14
commit ea4c2e59d3
3 files changed
+9 -4

No files matched your search

+6 -3
View File
@@ -5,12 +5,15 @@ description="X11 autologin service"
supervisor="supervise-daemon"
pidfile="/var/run/xinit.pid"
command="/etc/X11/xinit/xserverrc"
command_args=":0"
command_args="$DISPLAY"
start_pre(){
if [ "$DISPLAY" == "" ] ; then
DISPLAY=:0
fi
while sleep 0.3 ; do
if env DISPLAY=:0 xterm -bg "#000000" -e true 2>/dev/null ; then
su - "$USER" -c "env DISPLAY=:0 /etc/X11/xinit/xinitrc"
if env DISPLAY=$DISPLAY xterm -bg "#000000" -e true 2>/dev/null ; then
su - "$USER" -c "env DISPLAY=$DISPLAY /etc/X11/xinit/xinitrc"
fi
done &
}