.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 21 Nov 2020 20:40:18 +0200
changeset 951 0f401364a9aa
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Replace TERM=mintty with "xterm" as remote Debian doesn't have "mintty" definition.

#!/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