|
Packit Service |
6a275b |
#!/bin/sh
|
|
Packit Service |
6a275b |
# vim:set et sts=4 sw=4
|
|
Packit Service |
6a275b |
#
|
|
Packit Service |
6a275b |
# ibus-typing-booster - A completion input method for IBus
|
|
Packit Service |
6a275b |
#
|
|
Packit Service |
6a275b |
# Copyright (c) 2011-2012 Anish Patil <anish.developer@gmail.com>
|
|
Packit Service |
6a275b |
# Copyright (c) 2013 Mike FABIAN <mfabian@redhat.com>
|
|
Packit Service |
6a275b |
#
|
|
Packit Service |
6a275b |
# This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
6a275b |
# it under the terms of the GNU General Public License as published by
|
|
Packit Service |
6a275b |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit Service |
6a275b |
# (at your option) any later version.
|
|
Packit Service |
6a275b |
# This program is distributed in the hope that it will be useful,
|
|
Packit Service |
6a275b |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
6a275b |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
6a275b |
# GNU General Public License for more details.
|
|
Packit Service |
6a275b |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
6a275b |
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
Packit Service |
6a275b |
|
|
Packit Service |
6a275b |
PYTHON=@PYTHON@
|
|
Packit Service |
6a275b |
prefix=@prefix@
|
|
Packit Service |
6a275b |
export IBUS_TYPING_BOOSTER_LOCATION=${prefix}/share/ibus-typing-booster
|
|
Packit Service |
6a275b |
export IBUS_TYPING_BOOSTER_LIB_LOCATION=${prefix}/libexec
|
|
Packit Service |
6a275b |
export PYTHONIOENCODING=UTF-8
|
|
Packit Service |
6a275b |
|
|
Packit Service |
6a275b |
# Set this variable to something > 0 to get more debug output.
|
|
Packit Service |
6a275b |
# (Debug output may show up in the log file and/or in the lookup table):
|
|
Packit Service |
6a275b |
# export IBUS_TYPING_BOOSTER_DEBUG_LEVEL=1
|
|
Packit Service |
6a275b |
#
|
|
Packit Service |
6a275b |
# Set this to something if you want benchmarking (The profiling output
|
|
Packit Service |
6a275b |
# will appear in the debug log when "ibus restart" is executed):
|
|
Packit Service |
6a275b |
# export IBUS_TYPING_BOOSTER_PROFILE=yes
|
|
Packit Service |
6a275b |
|
|
Packit Service |
6a275b |
for arg in $@; do
|
|
Packit Service |
6a275b |
case $arg in
|
|
Packit Service |
6a275b |
--xml | -x)
|
|
Packit Service |
6a275b |
exec ${PYTHON} ${prefix}/share/ibus-typing-booster/engine/main.py --xml;;
|
|
Packit Service |
6a275b |
--help | -h)
|
|
Packit Service |
6a275b |
exec ${PYTHON} ${prefix}/share/ibus-typing-booster/engine/main.py $@;;
|
|
Packit Service |
6a275b |
*)
|
|
Packit Service |
6a275b |
if [ "x${IBUS_TYPING_BOOSTER_PROFILE}" != "x" ]; then
|
|
Packit Service |
6a275b |
exec ${PYTHON} ${prefix}/share/ibus-typing-booster/engine/main.py --profile $@
|
|
Packit Service |
6a275b |
else
|
|
Packit Service |
6a275b |
exec ${PYTHON} ${prefix}/share/ibus-typing-booster/engine/main.py $@
|
|
Packit Service |
6a275b |
fi
|
|
Packit Service |
6a275b |
exit 0
|
|
Packit Service |
6a275b |
;;
|
|
Packit Service |
6a275b |
esac
|
|
Packit Service |
6a275b |
done
|
|
Packit Service |
6a275b |
|