To make the default Ubuntu IM application Empathy start automatically when you log in, the following instructions are from OMG Ubuntu:
Empathy requires a little bit of a
kick to get going on login.
You would be forgiven for thinking
that checking the ‘Automatically
connect on start-up’ box in Empathy’s
preferences pertained to starting on
system login. It doesn’t, the start-up
in this case refers to Empathy’s start
up – not your computer’s.
We can make it start on login by going
to System > preferences > startup
applications > new item and entering
the following information in the
relevant fields:
Name: Empathy
Command: empathy -h
After some searching, I found an app that communicates with Empathy via dbus. I pulled some code from that and created a script that will set your status.
Setting it up is pretty easy:
Download the script here (github page).
It requires some python libraries that are in the repos (and might be installed by default):
sudo apt-get install python-dbus python-notify
Then to set it to start on login, run Startup Applications, click Add, and fill in the fields like this:
- Name: Custom -- Start Empathy Busy
- Command: /usr/bin/python /path/to/empathy_set_status.py dnd
- Comment: Start empathy and set status to busy (do no disturb).
The command field includes what status to set. If you don't want busy (dnd), then you can use one of these values: available, dnd, away, xa, hidden, offline.
Now when you log in, the script it should run empathy, wait a bit, and then set your status. You should see a notification when it tries to set your status.
I don't check that the status is set correctly, so I just have a wait time to hope that empathy will be ready to let us change the status. Adjust your time if it's not working. Increase the value of EMPATHY_STARTUP_SECONDS
until it works when you login. If you need to enter a password to unlock your keychain for your IM login, the delay will have to be long enough for Empathy to start up, for you to enter your password, and for Empathy to log into your accounts.
Best Answer
Are you using autologin? Maybe https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/558872 Does quitting and restarting empathy fix the problem? I think that is also a bug.