Accepting request 335645 from home:MargueriteSu:branches:M17N
OBS-URL: https://build.opensuse.org/request/show/335645 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=123
This commit is contained in:
19
xim.d-fcitx
19
xim.d-fcitx
@@ -1,26 +1,9 @@
|
||||
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
|
||||
export LC_CTYPE=$LANG
|
||||
export XMODIFIERS="@im=fcitx"
|
||||
export GTK_IM_MODULE=fcitx
|
||||
export GTK3_IM_MODULE=fcitx
|
||||
export QT_IM_SWITCHER=imsw-multi
|
||||
export QT_IM_MODULE=fcitx
|
||||
export QT4_IM_MODULE=fcitx
|
||||
|
||||
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
|
||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
|
||||
@@ -30,4 +13,4 @@ fi
|
||||
fcitx -d
|
||||
|
||||
# success:
|
||||
$success
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user