/usr/bin/im-launch is in im-config 0.24-1ubuntu4.
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 | #!/bin/sh
# vim: set sts=4 expandtab:
# Copyright (C) 2012 Osamu Aoki <osamu@debian.org>
# Copyright (C) 2012 Aron Xu <aron@debian.org>
# GNU General Public License version 2 or later.
#
# Launch input method configuration script for X, GNOME, KDE, ...
# see im-launch(1).
if [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ] || [ "x$1" = "x" ]; then
echo "Unknown option: $1"
echo "Usage: $0 SESSION-PROGRAM"
exit 1
fi
IM_START_SESSION="$@"
# If already tweaked, keep hands off :-)
# If im-config is removed but not purged, keep hands off :-)
if [ "$IM_CONFIG_PHASE" = 1 ]; then
IM_CONFIG_PHASE=2
# initialize all im-config common functions and parameters
. /usr/share/im-config/xinputrc.common
# source the first found configuration file
if [ -r "$IM_CONFIG_XINPUTRC_USR" ]; then
. $IM_CONFIG_XINPUTRC_USR
elif [ -x /usr/bin/fcitx ]; then
# Ubuntu Kylin special
run_im fcitx
elif [ -r "$IM_CONFIG_XINPUTRC_SYS" ]; then
. $IM_CONFIG_XINPUTRC_SYS
fi
unset IM_CONFIG_PHASE
fi
exec $IM_START_SESSION
|