File etc-x11-xim.d-scim-bridge-114 of Package scim-bridge

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-bridge
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
    ;;
    *)
        scim -d          
    ;;
esac

PATH=$OLD_PATH

# success:
return 0