Accepting request 321708 from home:MargueriteSu:branches:M17N

OBS-URL: https://build.opensuse.org/request/show/321708
OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=119
This commit is contained in:
Marguerite Su 2015-08-10 15:48:07 +00:00 committed by Git OBS Bridge
parent 83a6eafaba
commit a876e8a96d
2 changed files with 28 additions and 6 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Aug 10 14:19:20 UTC 2015 - i@marguerite.su
- fix boo#941052: /etc/X11/xim is broken: input methods
(Fcitx, IBus and etc) do not start at all
- fix bashism in xim.d-fcitx
* "return 0" can only be used in function or sourcing,
so define functions
* "type -p" command is not available in sh builtins,
change to "-x"
* other minor stuff
-------------------------------------------------------------------
Sat May 30 17:22:00 UTC 2015 - Led <ledest@gmail.com>

View File

@ -1,6 +1,16 @@
if ! type -p fcitx > /dev/null 2>&1 ; then
echo "fcitx is not installed. please run `sudo zypper in fcitx`."
return 1
function failure
{
return 1
}
function success
{
return 0
}
if ! [ -x /usr/bin/fcitx ] ; then
echo "fcitx is not installed. please 'sudo zypper in fcitx'."
$failure
fi
#make sure set these vars before dbus-launch
@ -13,11 +23,11 @@ export QT_IM_MODULE=fcitx
export QT4_IM_MODULE=fcitx
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax --exit-with-session`
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
fcitx -d
# success:
return 0
$success