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 540554 - should autostart after having been launched once
should autostart after having been launched once
Status: RESOLVED DUPLICATE of bug 506311
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2008-06-27 22:45 UTC by Colin Walters
Modified: 2008-07-13 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2008-06-27 22:45:52 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.
Comment 1 Xavier Claessens 2008-07-03 17:11:28 UTC
Isn't gnome-session supposed to save and restore running applications when log out/in?
Comment 2 Colin Walters 2008-07-03 18:35:32 UTC
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.
Comment 3 Xavier Claessens 2008-07-04 07:56:31 UTC
Ok, but what if empathy set the autostart and gnome-session does its work to restore empathy state? Empathy will be started twice?
Comment 4 Colin Walters 2008-07-04 20:20:27 UTC
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.
Comment 5 Frederic Peters 2008-07-13 21:15:12 UTC
Marking as a duplicate of bug 506311 which is really about the same thing.

*** This bug has been marked as a duplicate of 506311 ***