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

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

if ! type -p nicolatter > /dev/null 2>&1 ; then
    echo "nicolatter is not available."
    return 1
fi
if ! pidof cannaserver > /dev/null 2>&1 ; then
    if ! pidof jserver > /dev/null 2>&1 ; then
        echo "neither cannaserver nor jserver appears to be running."
        echo "at least one of them is needed for nicolatter."
        return 1
    fi
fi

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

nicolatter &

PATH=$OLD_PATH

# success:
return 0
openSUSE Build Service is sponsored by