i3: Fix program autostart script
Fixes timer calculation in autostart script. Makes autostart script slightly more resilient, checking for timeout time limit *or greater*.
This commit is contained in:
parent
219f9a912d
commit
53fc8bc134
1 changed files with 3 additions and 3 deletions
|
@ -8,11 +8,11 @@ wait_for_program() {
|
||||||
if xdotool search --onlyvisible --pid $! 2>/dev/null; then
|
if xdotool search --onlyvisible --pid $! 2>/dev/null; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if [ $n -eq 200 ]; then
|
if [ $n -gt 200 ]; then
|
||||||
notify-send -u critical "Error during start: last program $! did not started fast enough"
|
notify-send -u critical "Error during start: last program $! did not start fast enough"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
n=$($n + 1)
|
n=$((n + 1))
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue