File etc-x11-xim.d-uim of Package uim

OLD_PATH=$PATH
PATH=/usr/bin:/usr/X11R6/bin:$PATH

if ! type -p uim-xim > /dev/null 2>&1 ; then
    echo "uim-xim is not available."
    return 1
fi
if ! rpm -q uim-qt > /dev/null 2>&1 ; then
    echo "uim-qt package is not installed."
    return 1
fi

export XMODIFIERS="@im=uim"
export GTK_IM_MODULE=uim
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=uim

uim-xim &

PATH=$OLD_PATH

# success:
return 0
openSUSE Build Service is sponsored by