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