-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdcvsessioninit
More file actions
executable file
·31 lines (27 loc) · 883 Bytes
/
dcvsessioninit
File metadata and controls
executable file
·31 lines (27 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# NICE Desktop Cloud Visualization Init script
xsetroot -solid grey
XTERM_COMMAND="xterm -geometry 80x24+10+10 -ls"
SESSIONBIN=""
if [ -x /etc/X11/Xsession ]; then
SESSIONBIN="/etc/X11/Xsession"
elif [ -x /etc/X11/xdm/Xsession ]; then
SESSIONBIN="/etc/X11/xdm/Xsession"
elif [ -x /etc/X11/xinit/Xsession ]; then
SESSIONBIN="/etc/X11/xinit/Xsession"
elif [ -x /etc/gdm3/Xsession ]; then
SESSIONBIN="/etc/gdm3/Xsession"
elif [ -x /etc/X11/gdm/Xsession ]; then
SESSIONBIN="/etc/X11/gdm/Xsession gnome-session"
elif [ -x /etc/gdm/Xsession ]; then
SESSIONBIN="/etc/gdm/Xsession gnome-session"
elif [ -x /etc/kde/kdm/Xsession ]; then
SESSIONBIN="/etc/kde/kdm/Xsession"
fi
if [ "${SESSIONBIN}" = "" ]; then
echo "No session found, launching terminal..."
${XTERM_COMMAND}
else
echo "Starting session: ${SESSIONBIN}"
${SESSIONBIN}
fi