ibus/ibus-disable-engines-preload-in-GNOME.patch
Takashi Iwai ced48654c0 Accepting request 501092 from home:qzhao:branches:M17N
Update ibus.spec file, copy auto-start files to SOURCE directory to enable modifications before compile.  Add ibus-disable-engines-preload-in-GNOME.patch, Disable load preload-engines actions in SLE, which is unnecessary for mono IMF  in SLE and may cause CJK user login failed (bsc#1036729).

OBS-URL: https://build.opensuse.org/request/show/501092
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=164
2017-06-07 10:03:48 +00:00

22 lines
937 B
Diff

diff -Nura ibus-1.5.16/xim.d-ibus-121 ibus-1.5.16_new/xim.d-ibus-121
--- ibus-1.5.16/xim.d-ibus-121 2017-06-05 14:38:10.728021247 +0800
+++ ibus-1.5.16_new/xim.d-ibus-121 2017-06-05 14:40:44.380353362 +0800
@@ -13,17 +13,6 @@
# G-S-D. see bnc#873016.
*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