.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 02 Jun 2021 21:46:48 +0300
changeset 986 080abbbb7ba7
parent 277 38c4ac60b6fb
permissions -rw-r--r--
For my "cygrun.exe" wrapper to work it should be behind shebang scripts in the PATH, so moved ~/usr/bin to the PATH end on Cygwin.

#!/bin/sh

# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html

if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
  # Probably under Cygwin.
  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 -nolisten tcp "$@"
fi