File: im-config.bug-script

package info (click to toggle)
im-config 0.58-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: sh: 365; makefile: 96
file content (48 lines) | stat: -rw-r--r-- 1,218 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
echo "=== command path ==" >&3
type im-config >&3
echo >&3
#
echo "=== im-config API -l: available IM ===" >&3
echo -n "im-config -l => " >&3
/usr/bin/im-config -l >&3
echo >&3
#
echo "=== im-config API -m: selected IM ===" >&3
echo "im-config -m => " >&3
echo "   'system' 'user' 'automatic' 'override' 'autobase'" >&3
echo -n "   ">&3
/usr/bin/im-config -m|sed -e "s/^\(.*\)$/\\\'\1\\\'	/"| xargs echo >&3
echo >&3
#
echo "=== /etc/default/im-config ==" >&3
cat /etc/default/im-config >&3
echo >&3
#
if [ -x /usr/bin/localectl ]; then
    echo "=== localectl status ===" >&3
    /usr/bin/localectl status >&3
    echo >&3
fi
if [ x$XDG_SESSION_TYPE != xwayland ]; then
    echo "=== /etc/X11/default-display-manager ===" >&3
    /bin/cat /etc/X11/default-display-manager >&3
    echo >&3

    if [ -x /usr/bin/setxkbmap ]; then
        echo "=== setxkbmap -print ===" >&3
        /usr/bin/setxkbmap -print >&3
        echo >&3
    fi
    if [ -f $HOME/.Xmodmap ]; then
        echo "=== ~/.Xmodmap ===" >&3
        /bin/cat $HOME/.Xmodmap >&3
        echo >&3
    fi
fi

echo "=== environment vars ==" >&3
env|grep -E "^(XDG_|.*DISPLAY)"|sort >&3
env|grep -E "^(XMODIFIERS|.*IM_MODULE)"|sort >&3
echo >&3