File size: 508 Bytes
00d7a53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# X startup script for VNC session

# Set environment variables
export XDG_RUNTIME_DIR=/tmp/runtime-root
export QT_X11_NO_MITSHM=1

# Start desktop environment
if [ -x /usr/bin/startxfce4 ]; then
    exec startxfce4
elif [ -x /usr/bin/startfluxbox ]; then
    exec startfluxbox
elif [ -x /usr/bin/starticewm ]; then
    exec starticewm
elif [ -x /usr/bin/startkde ]; then
    exec startkde
else
    # Fallback: start a simple window manager
    if [ -x /usr/bin/twm ]; then
        twm &
    fi
fi