LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File etc-x11-xim.d-scim of Package scim (Project home:swyear)

OLD_PATH=$PATH
PATH=/usr/bin:/opt/kde3/bin:$PATH

if ! type -p scim > /dev/null 2>&1 ; then
    echo "scim is not available."
    return 1
fi

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=scim
case "$WINDOWMANAGER" in
    /opt/kde3/bin/startkde)
        if ! type -p skim > /dev/null 2>&1 \
          || grep -i -q "^[[:space:]]*Autostart.*=.*false" $HOME/.kde/share/config/skimrc
        then
            scim -d
        else
        # skim will be  used. But we don't start it here,
    	# we rely on the KDE3 autostart
    	# mechanism used in the skim package instead.
        # skim -d
    	:
        fi
    ;;
    /usr/bin/gnome-session)
	scim -d
        #workaround for bnc#853063
        #force disable keyboard plugins in gnome-settings-daemon
        gsettings set org.gnome.settings-daemon.plugins.keyboard active false
	echo "NOTE: keyboard plugin had been disabled"
    ;;
    *)
        scim -d          
    ;;
esac

PATH=$OLD_PATH

# success:
return 0