OsamaBinLikhon's picture
Enhancement: Add VNC desktop environment integration
00d7a53 verified
raw
history blame contribute delete
508 Bytes
#!/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