|
|
e08d0e |
diff --git a/unix/vncserver b/unix/vncserver
|
|
|
e08d0e |
index bb4f2feb..b038dd3b 100755
|
|
|
e08d0e |
--- a/unix/vncserver
|
|
|
e08d0e |
+++ b/unix/vncserver
|
|
|
e08d0e |
@@ -58,27 +58,14 @@ $defaultXStartup
|
|
|
8b1cd8 |
= ("#!/bin/sh\n\n".
|
|
|
8b1cd8 |
"unset SESSION_MANAGER\n".
|
|
|
8b1cd8 |
"unset DBUS_SESSION_BUS_ADDRESS\n".
|
|
|
8b1cd8 |
- "OS=`uname -s`\n".
|
|
|
8b1cd8 |
- "if [ \$OS = 'Linux' ]; then\n".
|
|
|
8b1cd8 |
- " case \"\$WINDOWMANAGER\" in\n".
|
|
|
8b1cd8 |
- " \*gnome\*)\n".
|
|
|
8b1cd8 |
- " if [ -e /etc/SuSE-release ]; then\n".
|
|
|
8b1cd8 |
- " PATH=\$PATH:/opt/gnome/bin\n".
|
|
|
8b1cd8 |
- " export PATH\n".
|
|
|
8b1cd8 |
- " fi\n".
|
|
|
8b1cd8 |
- " ;;\n".
|
|
|
8b1cd8 |
- " esac\n".
|
|
|
8b1cd8 |
- "fi\n".
|
|
|
8b1cd8 |
- "if [ -x /etc/X11/xinit/xinitrc ]; then\n".
|
|
|
8b1cd8 |
- " exec /etc/X11/xinit/xinitrc\n".
|
|
|
8b1cd8 |
- "fi\n".
|
|
|
8b1cd8 |
- "if [ -f /etc/X11/xinit/xinitrc ]; then\n".
|
|
|
8b1cd8 |
- " exec sh /etc/X11/xinit/xinitrc\n".
|
|
|
8b1cd8 |
- "fi\n".
|
|
|
8b1cd8 |
- "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
|
|
|
8b1cd8 |
- "xsetroot -solid grey\n".
|
|
|
8b1cd8 |
- "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
|
|
|
8b1cd8 |
- "twm &\n");
|
|
|
e08d0e |
+ "/etc/X11/xinit/xinitrc\n".
|
|
|
e08d0e |
+ "# Assume either Gnome or KDE will be started by default when installed\n".
|
|
|
e08d0e |
+ "# We want to kill the session automatically in this case when user logs out. In case you modify\n".
|
|
|
e08d0e |
+ "# /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should\n".
|
|
|
e08d0e |
+ "# be responsible to modify below code to avoid that your session will be automatically killed\n".
|
|
|
e08d0e |
+ "if [ -e /usr/bin/gnome-session -o -e /usr/bin/startkde ]; then\n".
|
|
|
e08d0e |
+ " vncserver -kill \$DISPLAY\n".
|
|
|
e08d0e |
+ "fi\n");
|
|
|
e08d0e |
|
|
|
418d68 |
$defaultConfig
|
|
|
418d68 |
= ("## Supported server options to pass to vncserver upon invocation can be listed\n".
|