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:
parent
83a6eafaba
commit
a876e8a96d
@ -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>
|
Sat May 30 17:22:00 UTC 2015 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
20
xim.d-fcitx
20
xim.d-fcitx
@ -1,6 +1,16 @@
|
|||||||
if ! type -p fcitx > /dev/null 2>&1 ; then
|
function failure
|
||||||
echo "fcitx is not installed. please run `sudo zypper in fcitx`."
|
{
|
||||||
return 1
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
function success
|
||||||
|
{
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! [ -x /usr/bin/fcitx ] ; then
|
||||||
|
echo "fcitx is not installed. please 'sudo zypper in fcitx'."
|
||||||
|
$failure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#make sure set these vars before dbus-launch
|
#make sure set these vars before dbus-launch
|
||||||
@ -13,11 +23,11 @@ export QT_IM_MODULE=fcitx
|
|||||||
export QT4_IM_MODULE=fcitx
|
export QT4_IM_MODULE=fcitx
|
||||||
|
|
||||||
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
|
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
|
||||||
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
|
||||||
eval `dbus-launch --sh-syntax --exit-with-session`
|
eval $(dbus-launch --sh-syntax --exit-with-session)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fcitx -d
|
fcitx -d
|
||||||
|
|
||||||
# success:
|
# success:
|
||||||
return 0
|
$success
|
||||||
|
Loading…
Reference in New Issue
Block a user