mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
03095a13a2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
36 lines
554 B
Bash
36 lines
554 B
Bash
#!/bin/bash
|
|
|
|
START="no"
|
|
|
|
if [ "$XIM" = "fcitx" ]; then
|
|
START="yes"
|
|
fi
|
|
|
|
if [ "$XIM_PROGRAM" = "fcitx" ]; then
|
|
START="yes"
|
|
fi
|
|
|
|
if [ "$GTK_IM_MODULE" = "fcitx" ]; then
|
|
START="yes"
|
|
fi
|
|
|
|
if [ "$QT_IM_MODULE" = "fcitx" ]; then
|
|
START="yes"
|
|
fi
|
|
|
|
if [ "$START" = "no" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# sleep for a little while to avoid duplicate startup
|
|
sleep 2
|
|
|
|
# Test whether fcitx is running correctly with dbus...
|
|
fcitx5-remote > /dev/null 2>&1
|
|
|
|
if [ $? = "1" ]; then
|
|
echo "Fcitx seems is not running"
|
|
fcitx5
|
|
else
|
|
echo "Fcitx is running correctly."
|
|
fi
|