diff options
Diffstat (limited to 'net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch')
-rw-r--r-- | net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch b/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch new file mode 100644 index 0000000..8b50d8c --- /dev/null +++ b/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch @@ -0,0 +1,33 @@ +diff --git a/unix/vncserver b/unix/vncserver +index 9e7a6ac5..fff53bdb 100755 +--- a/unix/vncserver ++++ b/unix/vncserver +@@ -63,27 +63,7 @@ $defaultXStartup + = ("#!/bin/sh\n\n". + "unset SESSION_MANAGER\n". + "unset DBUS_SESSION_BUS_ADDRESS\n". +- "OS=`uname -s`\n". +- "if [ \$OS = 'Linux' ]; then\n". +- " case \"\$WINDOWMANAGER\" in\n". +- " \*gnome\*)\n". +- " if [ -e /etc/SuSE-release ]; then\n". +- " PATH=\$PATH:/opt/gnome/bin\n". +- " export PATH\n". +- " fi\n". +- " ;;\n". +- " esac\n". +- "fi\n". +- "if [ -x /etc/X11/xinit/xinitrc ]; then\n". +- " exec /etc/X11/xinit/xinitrc\n". +- "fi\n". +- "if [ -f /etc/X11/xinit/xinitrc ]; then\n". +- " exec sh /etc/X11/xinit/xinitrc\n". +- "fi\n". +- "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n". +- "xsetroot -solid grey\n". +- "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n". +- "twm &\n"); ++ "exec /etc/X11/xinit/xinitrc\n"); + + $defaultConfig + = ("## Supported server options to pass to vncserver upon invocation can be listed\n". |