/usr/bin/hime-env is in hime 0.9.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #!/bin/sh
# Copyright and license see bottom of this file
HIME_BINARY=`whereis hime | cut -d ' ' -f 2`
if [ ! -x "$HIME_BINARY" ]; then
echo
echo Your hime is not installed properly. Bye.
echo
exit
fi
# OS / distribution
uname -a | sed -e "s/$USER//" -e "s/$(hostname)//" | tr -s ' ' ' '
echo
ls /etc/*[-_]version | while read ver; do echo $ver: `cat $ver`; done
echo
echo -n "/etc/issue: "
grep -v '^$' /etc/issue | head -n 1 | sed 's/$/\\/' | cut -d '\' -f 1
if [ -x "$HIME_BINARY" ]; then
echo
echo -n "$HIME_BINARY:"`$HIME_BINARY -v 2>&1 | grep version | sed -e 's/$/, linked to /'`
ldd "$HIME_BINARY" | grep -i gtk | cut -d '>' -f 2 | cut -d '(' -f 1 | tr -s '\t' ' '
fi
if [ -n "$XMODIFIERS" -o -n "$LC_ALL" -o -n "$LC_CTYPE" -o -n "$LANG" -o -n "$LANGUAGE" -o -n "$GTK_IM_MODULE" -o -n "$QT_IM_MODULE" -o -n "$QT4_IM_MODULE" ]; then
echo
[ -n "$XMODIFIERS" ] && echo "XMODIFIERS : XMODIFIERS=$XMODIFIERS"
[ -n "$LANG" ] && echo "LANG : LANG=$LANG"
[ -n "$LANGUAGE" ] && echo "LANGUAGE : LANGUAGE=$LANGUAGE"
[ -n "$LC_CTYPE" ] && echo "LC_CTYPE : LC_CTYPE=$LC_CTYPE"
[ -n "$LC_ALL" ] && echo "LC_ALL : LC_ALL=$LC_ALL"
locale 2> /dev/null | grep -v '"' | sed 's/=/\t : /' | grep -v ': $'
[ -n "$GTK_IM_MODULE" ] && echo "GTK_IM_MODULE: GTK_IM_MODULE=$GTK_IM_MODULE"
[ -n "$QT_IM_MODULE" ] && echo "QT_IM_MODULE : QT_IM_MODULE=$QT_IM_MODULE"
[ -n "$QT4_IM_MODULE" ] && echo "QT4_IM_MODULE: QT4_IM_MODULE=$QT4_IM_MODULE"
fi
echo
echo "Running hime number: "`pgrep hime | wc -l`
echo
echo "hime socket number: "`ls /tmp/hime-$USER/socket-:* | wc -l`
echo
echo -n "System library path: "
ls -d /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64 2> /dev/null
# TODO: detect more binary name of gtk-query-immodules-2.0
GTK_QUERY_2=`whereis gtk-query-immodules-2.0 | cut -d ' ' -f 2`
if [ -x "$GTK_QUERY_2" ]; then
echo
echo "$GTK_QUERY_2: "`$GTK_QUERY_2 2> /dev/null | grep hime | wc -l` | sed -e 's/2$/has hime/' -e 's/^.$/may has some problem/' | grep -v 0$
ls /etc/gtk-2.0/gtk.immodules* | while read ver; do echo $ver: `grep hime $ver | wc -l | sed -e 's/^2$/has hime/' -e 's/^.$/may has some problem/'`; done
fi
# TODO: detect more binary name of gtk-query-immodules-3.0
GTK_QUERY_3=`whereis gtk-query-immodules-3.0 | cut -d ' ' -f 2`
if [ -x "$GTK_QUERY_3" ]; then
echo
echo "$GTK_QUERY_3: "`$GTK_QUERY_3 2> /dev/null | grep hime | wc -l` | sed -e 's/2$/has hime/' -e 's/^.$/may has some problem/' | grep -v 0$
ls /usr/lib/gtk-3.0/*/immodules.cache* | while read ver; do echo $ver: `grep hime $ver | wc -l | sed -e 's/^2$/has hime/' -e 's/^.$/may has some problem/'`; done
fi
# Copyright (C) 2012 Wen-Yen Chuang <caleb AT calno DOT com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|