debian/fcitx-qimpanel-autostart
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # sleep for a little while to avoid duplicate startup |
| 4 | sleep 3 |
| 5 | |
| 6 | # Test whether fcitx is running correctly with dbus... |
| 7 | fcitx-remote > /dev/null 2>&1 |
| 8 | |
| 9 | if [ $? = "1" ]; then |
| 10 | echo "Fcitx seems is not running" |
| 11 | exit 0 |
| 12 | else |
| 13 | echo "Fcitx is running correctly." |
| 14 | exec fcitx-qimpanel |
| 15 | fi |