Accepting request 917589 from editors

- Work for boo#1183497: make sure that if ibus is the input method
  that there exists a working gtk immodule for ibus as well as the
  ibus daemon is up and running

OBS-URL: https://build.opensuse.org/request/show/917589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/emacs?expand=0&rev=159
This commit is contained in:
Dominique Leuenberger 2021-09-13 14:24:19 +00:00 committed by Git OBS Bridge
commit 0cc68f0345
2 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Sep 8 09:05:56 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Work for boo#1183497: make sure that if ibus is the input method
that there exists a working gtk immodule for ibus as well as the
ibus daemon is up and running
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 21 09:22:45 UTC 2021 - Andreas Schwab <schwab@suse.de> Wed Jul 21 09:22:45 UTC 2021 - Andreas Schwab <schwab@suse.de>

View File

@ -137,5 +137,40 @@ if test -z "NO_AT_BRIDGE" ; then
fi fi
unset gsettings unset gsettings
fi fi
#
# Check input method for working ibus setup
#
case "$XMODIFIERS" in
@im=ibus*)
_arch=$(getconf LONG_BIT)
if test "$_arch" != 64
then
unset _arch
else
_arch=-64
fi
if type -p gtk-query-immodules-3.0${_arch} &> /dev/null
then
_ibus=$(gtk-query-immodules-3.0${_arch} | grep im-ibus)
else
unset _ibus
fi
if test -n "$_ibus"
then
if test -z "$GTK_IM_MODULE" -o "$GTK_IM_MODULE" != ibus
then
export GTK_IM_MODULE=ibus
fi
else
unset XMODIFIERS
fi
unset _ibus _arch
if ! ibus list-engine &> /dev/null
then
unset GTK_IM_MODULE XMODIFIERS
fi
;;
*)
esac
unset G_MESSAGES_DEBUG G_DEBUG G_MESSAGES_PREFIXED unset G_MESSAGES_DEBUG G_DEBUG G_MESSAGES_PREFIXED
exec -a $arg0 ${1+"$@"} "${argv[@]}" exec -a $arg0 ${1+"$@"} "${argv[@]}"