GNOME Bugzilla – Bug 540554
should autostart after having been launched once
Last modified: 2008-07-13 21:15:12 UTC
Hi, On various other platforms the behavior of the IM client is to, once it has been started by the user from the Apps/Start menu, from that point on autostart. If the user explicitly quits the app, do not autostart. On Freedesktop platforms, the right way to do this is to write out a file in ~/.config/autostart/empathy.desktop when the app is launched, and unlink it on quit.
Isn't gnome-session supposed to save and restore running applications when log out/in?
The XSMP design is broken because it's very easy not to go through the logout step - for example, on rebooting (especially with multiple users logged in), power loss, etc. You could integrate with the new session management: http://live.gnome.org/SessionManagement/NewGnomeSession But really it's just easier to do the autostart file thing since you will be compatible not only with older GNOME but also XFCE and KDE.
Ok, but what if empathy set the autostart and gnome-session does its work to restore empathy state? Empathy will be started twice?
The best is to not use XSMP at all, and handle the remaining bits (restoring window position if deemed important) inside your app. There is discussion about adding infrastructure for this to GTK+, but it's not a big deal for Empathy probably if you just skip it for now.
Marking as a duplicate of bug 506311 which is really about the same thing. *** This bug has been marked as a duplicate of 506311 ***