Copy option from '/etc/X11/xinit/xserverrc' for Debian.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Dec 2011 17:36:24 +0200
changeset 276 eb428b5e125a
parent 275 2f79af90c708
child 277 38c4ac60b6fb
Copy option from '/etc/X11/xinit/xserverrc' for Debian.
.xserverrc
--- a/.xserverrc	Sun Dec 18 17:24:56 2011 +0200
+++ b/.xserverrc	Sun Dec 18 17:36:24 2011 +0200
@@ -4,7 +4,10 @@
 
 if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
   # Probably under Cygwin.
-  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"
+  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" "$@"
+elif [ -f /etc/debian_version ]; then
+  exec /usr/bin/X -nolisten tcp "$@"
 else
   exec X
 fi
+