summaryrefslogtreecommitdiff
path: root/xinput-ibus
blob: 458145392f8af22e56ec52c6ae43559a563714d9 (plain)
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
prefix=/usr
exec_prefix=${prefix}

XIM=ibus
XIM_PROGRAM="${exec_prefix}/bin/ibus-daemon"
ICON="ibus"
XIM_ARGS="--xim"
PREFERENCE_PROGRAM="${exec_prefix}/bin/ibus-setup"
SHORT_DESC="IBus"
GTK_IM_MODULE=ibus
NOT_RUN=gnome3

if test -f /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
   test -f /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
   test -f /usr/lib64/qt4/plugins/inputmethods/libqtim-ibus.so || \
   test -f /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so;
then
    QT_IM_MODULE=ibus
else
    QT_IM_MODULE=xim
fi

# if [ -z "$IBUS_SESSION_ID" ]; then
#   export IBUS_SESSION_ID=`mktemp -u XXXXXXXX`
# fi