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

# Wait for fcitx to startup
for i in $(seq 30); do
  if fcitx-remote &> /dev/null; then
    sogou-qimpanel $@
    echo 'sogou-qimpanel started'
    exit
  else
    sleep 1
  fi
done

echo 'sogou-qimpanel failed to start: fcitx not running'
exit 1