File ibus-autostart of Package ibus.30100

#!/bin/sh

test x"$INPUT_METHOD" = x"ibus" || exit 0

# GNOME starts ibus by itself
case "$WINDOWMANAGER" in
    *gnome*)
        exit 0;;
esac

# sleep for a little while to avoid duplicate startup
# sleep 2

# boo#1211977: xdg-autostart-generator cannot launch ibus with -d
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]; then
    exec ibus-daemon --xim
fi

ibus-daemon --xim -d
exit 0
openSUSE Build Service is sponsored by