Sep 24

Start empathy automatically when network connection is available

I have noticed that Empathy (the default multi-protocol chat client in Ubuntu 11.04) doesn’t re-login to the accounts after the network is dropped and re-connected. So I wrote the following python script to solve this problem. The script will be using D-bus signals to detect the network connection status.This will make empathy to,


  • connect automatically when network connection is established (even when empathy is not running).
  • re-login to accounts when the network gets dropped and reconnect again(very useful when using wireless connections).



To use this script add it to the startup applications. Command to be given is “python /<path>/<to>/<script>/



Share Button