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.

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


#!/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.