gnome-gmail-notifier - postponing startup

I installed gnome-gmail-notifier and set it to start automatically.
However, as it takes a few seconds for the wireless connection on my
laptop to start, the notifier reports an error (no connection) and seems
to stay like this. When I restart it after there is connection it’s ok.
So the question is, is it possible to postpone it’s startup (or any
other app for that matter) or make it start when network manager has
connected?

p.


pavkw

pavkw’s Profile: http://forums.opensuse.org/member.php?userid=22058
View this thread: http://forums.opensuse.org/showthread.php?t=407426

Ok, here’s the simple script that will do it:

Code:

#!/bin/bash

while true; do

NETWORK_STATUS=nm-tool|grep State|cut -f2 -d' ';

case $NETWORK_STATUS in
‘connected’)
gnome-gmail-notifier
break
;;
‘disconnected’)
sleep 1
;;
esac

done


Save, set executable permissions and add to start-up programs instead
of gnome-gmail-notifier.

p.


pavkw

pavkw’s Profile: http://forums.opensuse.org/member.php?userid=22058
View this thread: http://forums.opensuse.org/showthread.php?t=407426