gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / desktop / gnome2 / gnome-connection-manager / files / gcm
blob65719d5491252dea4abf4c2d6c8e41e64b3ee9d5
1 #!/bin/sh
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
12 exit 1
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-}" ] && \
19 LANGUAGE="$LANG" || \
20 LANGUAGE=en
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:
29 TERM=screen-256color
30 export TERM
32 echo "Starting gnome-connection-manager with LANGUAGE=$LANGUAGE ..."
33 locale 2>/dev/null
34 exec /usr/share/gnome-connection-manager/gnome_connection_manager.py "$@"