.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 23 Dec 2022 20:26:07 +0200
changeset 1006 ad4478dd89fc
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Avoid a warning when HG is operating via SSH: remote: tput: No value for $TERM and no -T specified

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