3 # Simple start wrapper (C) 2015-2020 by Jim Klimov for gnome-connection-manager
4 # Install this script as /usr/bin/gcm
5 # Requires the GCM itself: http://kuthulu.com/gcm/?module=download
6 # or nowadays https://github.com/kuthulux/gnome-connection-manager
7 # unpacked as /usr/share/gcm (may be a symlink to actual version)
8 # and its dependencies (python v2.6+, glade, X11, etc.)
10 if [ -z "$DISPLAY" ]; then
11 echo "FATAL: The DISPLAY variable is not set and is required!" >&2
15 # Empirically it seems that for GCM interface to be properly localized,
16 # the LANGUAGE should be just the two-character code
17 if [ -z "${LANGUAGE-}" ]; then
18 [ -n "${LANG-}" ] && \
22 [ "$LANGUAGE" = en
] || \
23 LANGUAGE
="`echo "$LANGUAGE" | sed 's,^\(..\).*$,\1,'`"
25 export LANGUAGE LANG LC_ALL DISPLAY
27 # sun-color, xterm*, ansi, vt100, vt200 all had issues with different tools
28 # executed in the VTE sessions. Use this least-evil value by default:
32 echo "Starting gnome-connection-manager with LANGUAGE=$LANGUAGE ..."
34 exec /usr
/share
/gnome-connection-manager
/gnome_connection_manager.py
"$@"