After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 506311 - Auto start on login if running on logout
Auto start on login if running on logout
Status: RESOLVED NOTABUG
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
: 540554 (view as bug list)
Depends on: 525039
Blocks:
 
 
Reported: 2007-12-29 19:57 UTC by Martin Ejdestig
Modified: 2010-03-24 21:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Ejdestig 2007-12-29 19:57:01 UTC
Empathy seems to always autostart when a user logs in. The user has to go to preferences->sessions and disable Empathy in the list of autostarted applications to turn it off. I think it would be better to automatically remember if Empathy was running or not when the user logged out.

Havoc recently mentioned they did something like this for Mugshot by dynamically adding/removing a file to the auto-start machinery (I think... can't locate thread right now).
Comment 1 Frederic Peters 2008-04-11 15:09:50 UTC
As the resolution has been to not install an autostart file anymore, I believe this bug can be closed.  Thanks for your time.
Comment 2 Martin Ejdestig 2008-04-11 15:36:50 UTC
Well, not really. Automatically remembering if Empathy was running or not would still be a neat feature. I'm changing the title. (Feel free to close it again if you disagree. :)
Comment 3 Frederic Peters 2008-04-11 15:39:38 UTC
I believe Empathy now gets handled just like any other applications and will be restored if saved as part of a session; but I confess I didn't check this.
Comment 4 Martin Ejdestig 2008-04-11 16:32:10 UTC
But handling this with the session machinery is not good enough IMHO. It should be transparent to the user.
Comment 5 Martin Ejdestig 2008-04-11 16:36:14 UTC
I should say, not good enough for this use case. I believe that's why the Mugshot people worked around it.
Comment 6 Xavier Claessens 2008-04-19 21:51:48 UTC
Why isn't it enough? all applications are restored by gnome-session why is empathy an exception?
Comment 7 Martin Ejdestig 2008-04-20 08:10:02 UTC
It's not "good enough" for the simple reason that it is not automatic. (It requires an extra step... enabling a checkbox, which I can't even find it in Hardy, or doing the system->preferences->yada yada dance...)

I'm pretty vexed at not finding Havoc's mail. Maybe you can talk to him on IRC. Or maybe I misremember (though I don't think so).
Comment 8 Xavier Claessens 2008-04-20 08:27:48 UTC
That's not empathy's fault if gnome-session's UI is hidden and boggus. We need a good reason to do that at empathy's level instead of let gnome-session do it.
Comment 9 Martin Ejdestig 2008-04-20 09:09:04 UTC
Well, will apps be able to say "I want to be started the next time the user logs in without him having to choose save session or some such" with the new session stuff that's been brewing for a while? If not, maybe it can be fixed.

Anyway, I don't care about the mechanism per se. If doing it the way I believe Mugshot is doing it right now works, why not do it in Empathy too? (I should say I don't know how much work it entails since I haven't looked at the Mugshot code...)

The IMHO important thing from an interaction design stand point is that it's completely automatic. If you don't agree with that, feel free to close the bug. :)
Comment 10 Xavier Claessens 2008-04-20 09:37:07 UTC
I'm not going to reinvent the wheel in empathy. That's something that need to be handled by gnome-session, if it doesn't do that job well I guess that's a bug there... I don't see why every application should do it's own session handling just because gnome-session don't do its job correctly.

I'm closing WONTFIX, please feel free to open a bug against gnome-session if it doesn't do the correct job.
Comment 11 Martin Ejdestig 2008-04-27 10:09:12 UTC
http://live.gnome.org/SessionManagement/NewGnomeSession

Hopefully this will be in GNOME 2.24. 

Reopening. (Since, as I said, this bug really isn't about the mechanism but the behaviour and with the new GNOME session stuff it looks like it's solvable in a nice way. Right?)
Comment 12 Martin Ejdestig 2008-04-27 10:19:57 UTC
Oh, and I just now found Havoc's comments about how they work around it in Mugshot. See bug 79285 comment 14. That particular workaround is moot with the new session management Lucas is working on but Havoc, as always, has some very insightful comments. :)
Comment 13 Frederic Peters 2008-07-13 21:15:12 UTC
*** Bug 540554 has been marked as a duplicate of this bug. ***
Comment 14 Guillaume Desmottes 2009-08-28 12:38:15 UTC
As it has been said, gnome-session should restart Empathy if needed. Closing this bug.
Comment 15 Martin Ejdestig 2009-08-28 20:17:25 UTC
Does this mean that Empathy now uses AutostartCondition and will be automatically started by gnome-session if it was running when the user logged out? And if it wasn't running on logout, it won't start?