summarylogtreecommitdiffstats
path: root/fcitx-qimpanel-autostart
blob: 4a1e81e27866153d62d1f889dbabadd1cc911b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# sleep for a little while to avoid duplicate startup
sleep 3

# Test whether fcitx is running correctly with dbus...
fcitx-remote > /dev/null 2>&1

if [ $? = "1" ]; then
    echo "Fcitx seems is not running"
    exit 0
else
    echo "Fcitx is running correctly."
    exec fcitx-qimpanel
fi