Accepting request 245782 from home:fcrozat:branches:M17N
- Update ibus xim script to properly detect GNOME 3.12+ and to use ibus default configuration on first startup of GNOME (bnc#862589 internal), with help from Takashi Iwai. OBS-URL: https://build.opensuse.org/request/show/245782 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=121
This commit is contained in:
@@ -31,7 +31,19 @@ __END
|
||||
# GNOME 3 Settings Daemon keyboard plugin manages all ibus settings itself,
|
||||
# so don't do manual setup&startup of ibus otherwise it would conflict with
|
||||
# G-S-D. see bnc#873016.
|
||||
*gnome-session*)
|
||||
*gnome*)
|
||||
SOURCES=$(gsettings get org.freedesktop.ibus.general preload-engines)
|
||||
if [ "$SOURCES" == '@as []' ]; then
|
||||
echo "initial GNOME startup, ibus default configuration applied"
|
||||
ibus-daemon -d
|
||||
timer=5
|
||||
while [ "$SOURCES" == '@as []' ] && [ ${timer} -gt 0 ]; do
|
||||
sleep 1
|
||||
timer=$[${timer}-1]
|
||||
SOURCES=$(gsettings get org.freedesktop.ibus.general preload-engines)
|
||||
done
|
||||
ibus exit
|
||||
fi
|
||||
# make sure G-S-D keyboard plugin is active
|
||||
echo "ibus will be managed by GNOME."
|
||||
gsettings set org.gnome.settings-daemon.plugins.keyboard active true
|
||||
|
Reference in New Issue
Block a user