I've added Skype to my "Startup applications" list, so that it starts automatically after I log in. (This is on Ubuntu 9.04 Jaunty, with the Gnome desktop)

However, I frequently use my laptop offline, and then Skype is less than useless: it just serves to annoy me with a startup noise and permanently animated toolbar icon.

Is there a way to tell Skype to start only when I'm online? Can I use Upstart to do something like that?

link|improve this question
Related: superuser.com/questions/32658/… – nagul Sep 28 '09 at 15:58
Consider adding ubuntu to the tag list. – user6902 Sep 28 '09 at 21:01
feedback

2 Answers

Add a script to your bin directory, and start that script instead of starting skype.

The script will look kind of like this:

#!/bin/bash -f
if [[ `ifconfig eth0|grep 'inet addr'` ]] ; then
    skype
fi

It's ghetto but it should work.

link|improve this answer
perhaps adding this script to autorun should be helpfull – bbaja42 Nov 6 '09 at 10:53
feedback

This might be helpful for you . Actually i have asked this question for empathy chat client . I guess u can do for skype also

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.