dpy number options
This commit is contained in:
1 parent
bd7ac90e14
commit
ea4c2e59d3
3 files changed
+9
-4
No files matched your search
@@ -2,3 +2,5 @@
|
||||
## X11 autologin service
|
||||
## Target user name (default=root)
|
||||
#USER=root
|
||||
## Target dpy number
|
||||
#DISPLAY=:0
|
||||
@@ -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 &
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ source=("https://gitlab.freedesktop.org/xorg/app/xinit/-/archive/xinit-$version/
|
||||
"files/xinit.confd"
|
||||
"files/xinit.initd"
|
||||
)
|
||||
depends=(util-macros xorgproto libX11 xorg-server)
|
||||
depends=(util-macros xorgproto libX11 xorg-server xterm)
|
||||
makedepends=()
|
||||
md5sums=('0855364c1c869679300d55e9dd57e2aa'
|
||||
'SKIP'
|
||||
|
||||
Reference in new issue
Block a user