This file is indexed.

/usr/bin/hime-env is in hime 0.9.10+git20170427+dfsg1-2build4.

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
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
# Copyright and license see bottom of this file
echo "====Detecting hime install===="
HIME_BINARY=`whereis hime | cut -d ' ' -f 2`
if [ -x "$HIME_BINARY" ]; then
  echo "==>Hime binary found."
else
  echo
  echo "==>Your hime is not installed properly. Bye."
  echo
  exit
fi
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' ' '
  ls /usr/share/doc/hime*/changelog.Debian.gz 2> /dev/null | while read ver; do echo "==>$ver: `zcat $ver | head -n 1`"; done
  ls /usr/share/doc/hime*/ChangeLog 2> /dev/null | while read ver; do echo "==>$ver: `cat $ver | head -n 1`"; done
fi
echo
echo
echo "====Detecting OS/Distribution===="
# OS / distribution
uname -a | sed -e "s/$(hostname)//" -e "s/$USER//" | tr -s ' ' ' '

echo
lsb_release -a 2> /dev/null|grep -v "LSB Version"
ls /etc/*[-_]version 2> /dev/null | while read ver; do echo $ver: `cat $ver`; done
ls /etc/*[-_]release 2> /dev/null | 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


echo
echo
echo "====Detecting Environment Variables===="
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
echo "====Detecting hime status===="
echo "==>Running hime number: "`pgrep ^hime$ | wc -l`

echo
# TODO: get tempdir from TMPDIR, TMP, and TEMP
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
echo "====Immodule status===="
# 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_IMMODULES_2" ]; then
  GTK_QUERY_IMMODULES_2=/usr/lib/`ls /usr/lib | grep linux | grep $(uname -m)`/libgtk2.0-0/gtk-query-immodules-2.0
fi

if [ -x "$GTK_QUERY_2" ]; then
  echo
  echo "==>gtk-query-immodules-2.0:"
  ls -d `$GTK_QUERY_2 | grep hime | cut -d '"' -f 2 | grep '/'`
fi
  echo
  echo "==>gtk-2.0 immodule cache"
  echo `ls -d /etc/gtk-2.0/gtk.immodules* /usr/lib/$(ls /usr/lib |grep linux | grep $(uname -m))/gtk-2.0/*/immodules.cache* /usr/local/etc/gtk-2.0/gtk.immodules* 2> /dev/null` | sed 's/$/:/'
  ls -d `grep hime /etc/gtk-2.0/gtk.immodules* /usr/lib/$(ls /usr/lib |grep linux | grep $(uname -m))/gtk-2.0/*/immodules.cache* /usr/local/etc/gtk-2.0/gtk.immodules* 2> /dev/null | cut -d '"' -f 2 | grep '/'`

# 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_IMMODULES_3" ]; then
  GTK_QUERY_IMMODULES_3=/usr/lib/`ls /usr/lib | grep linux | grep $(uname -m)`/libgtk-3.0/gtk-query-immodules-3.0
fi


if [ -x "$GTK_QUERY_3" ]; then
  echo
  echo "==>gtk-query-immodules-3.0:"
  ls -d `$GTK_QUERY_3 | grep hime | cut -d '"' -f 2 | grep '/'`
fi
  echo
  echo "==>gtk-3.0 immodule cache"
  echo `ls -d /usr/lib*/gtk-3.0/*/immodules.cache* /usr/lib/$(ls /usr/lib |grep linux | grep $(uname -m))/gtk-3.0/*/immodules.cache* /usr/local/lib*/gtk-3.0/*/immodules.cache* 2> /dev/null` | sed 's/$/:/'
  ls -d `grep hime /usr/lib*/gtk-3.0/*/immodules.cache* /usr/lib/$(ls /usr/lib |grep linux | grep $(uname -m))/gtk-3.0/*/immodules.cache* /usr/local/lib*/gtk-3.0/*/immodules.cache* 2> /dev/null | cut -d '"' -f 2 | grep '/'`

# 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