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 569473 - Allow user to choose any status as default
Allow user to choose any status as default
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: Preferences
2.25.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
: 649833 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-28 14:32 UTC by Duncan Lithgow
Modified: 2018-05-22 13:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Patch that removes the automatic connect startup option. (76.44 KB, patch)
2010-08-27 14:07 UTC, Mohamed Amine Il Idrissi
rejected Details | Review
Patch that fixes the bug by removing the option and adding a status combobox (81.33 KB, patch)
2010-12-04 20:07 UTC, Mohamed Amine Il Idrissi
rejected Details | Review

Description Duncan Lithgow 2009-01-28 14:32:06 UTC
(reported downline at ubuntu launchpad at https://bugs.edge.launchpad.net/ubuntu/+source/empathy/+bug/322314)

Binary package hint: empathy

Ubuntu 9.04
Empathy 2.25.4-1ubuntu1

Empathy IM setting 'Edit > Preferences > Automatically connect on startup' does not automatically connect on startup.
Comment 1 Guillaume Desmottes 2009-03-20 12:42:29 UTC
Seems to work fine for me. Could you retry with 2.26.0 please?
Comment 2 Duncan Lithgow 2009-03-20 21:16:38 UTC
I have disabled this setting, restarted empathy, re-enabled this setting and restarted the computer. Still empathy was not started on login.
Comment 3 Guillaume Desmottes 2009-06-04 12:29:11 UTC
Does NetworkManager detects you as connected when Empathy is started?
Comment 4 Duncan Lithgow 2009-06-06 08:59:20 UTC
I don't understand your question Guillaume. This bug is about Empathy not starting at session start, nothing to do with whether or not the network is up.
Comment 5 Frederic Peters 2009-06-06 09:40:29 UTC
Oh, it looks like a misunderstanding of what the option is supposed to do, it is *not* to add empathy to the default GNOME session, it's about connecting accounts when Empathy is started.

I guess what you'd want is akin bug 506311.
Comment 6 Ned 2009-07-25 12:10:05 UTC
"Automatically connect on startup" setting is confusing - users may expect this to run Empathy on login.

Can we change the label and make it obvious that this setting means "go online when you start Empathy"?
Comment 7 rugby471 2009-12-19 11:05:37 UTC
How about:

'Automatically connect to accounts when Empathy starts'

If this is okay I shall make a patch
Comment 8 Guillaume Desmottes 2010-01-07 20:49:31 UTC
I'd rather remove the checkbox and replace it by:

Status when starting Empathy: [Available]
and use the presence chooser to let user choose any status by default.
Comment 9 Bartosz 2010-05-05 14:14:58 UTC
Maybe:
"Automatically connect on Empathy startup"
Comment 10 Magnun Leno 2010-05-23 22:02:20 UTC
I think that "Automatically connect on Empathy startup" is a good idea, I had the same felling about the "Automatically connect on startup" but I'd like to suggest that Empaphy should remember users last status.
Comment 11 Omer Akram 2010-06-13 18:28:45 UTC
Comment#8 would be fine.
Comment 12 Mohamed Amine Il Idrissi 2010-08-27 14:06:07 UTC
From the downstream bug: (comment #11)
"I'm with MPT and co. on this. The option should be removed entirely. Why would you *not* want to go online when starting Empathy? If you're *starting* Empathy, you're signalling that you want to go online."

I'll attach a patch to do exactly that. Note that this doesn't remove the gsettings key, so the option remains accessible.
Comment 13 Mohamed Amine Il Idrissi 2010-08-27 14:07:07 UTC
Created attachment 168902 [details] [review]
Patch that removes the automatic connect startup option.
Comment 14 Guillaume Desmottes 2010-08-30 08:23:15 UTC
(In reply to comment #12)
> From the downstream bug: (comment #11)
> "I'm with MPT and co. on this. The option should be removed entirely. Why would
> you *not* want to go online when starting Empathy? If you're *starting*
> Empathy, you're signalling that you want to go online."

If you want to connect as Invisible and not appear as online even for a few seconds?
Comment 15 Mohamed Amine Il Idrissi 2010-08-30 11:24:56 UTC
(In reply to comment #14)
> (In reply to comment #12)
> > From the downstream bug: (comment #11)
> > "I'm with MPT and co. on this. The option should be removed entirely. Why would
> > you *not* want to go online when starting Empathy? If you're *starting*
> > Empathy, you're signalling that you want to go online."
> 
> If you want to connect as Invisible and not appear as online even for a few
> seconds?

Hmm, good point.
In this case, your proposition is good: 
Status when starting Empathy: [Available]
Where [] would contain the statuses and a "Last status" option.
Comment 16 Mohamed Amine Il Idrissi 2010-12-04 20:07:57 UTC
Created attachment 175848 [details] [review]
Patch that fixes the bug by removing the option and adding a status combobox

Here's my second attempt at fixing the bug. It adds a status combobox that allows to choose any status you want Empathy to use at start up. Please review :)

I should note though that Glade is not playing nice with me, like usual :( the glade-preferences.ui has so many insertions and deletions, though at the end it isn't a big change. Is this a problem?
Comment 17 Guillaume Desmottes 2010-12-06 10:26:22 UTC
Review of attachment 175848 [details] [review]:

Thanks for your patch. Here is my review.

Your patch introduced some trailing spaces, you can use "make check" to catch them.

Ideally, the chooser should also include the preset defined by the EmpathyPresenceChooser.

::: libempathy/empathy-gsettings.h
@@ +28,3 @@
 #define EMPATHY_PREFS_SCHEMA "org.gnome.Empathy"
 #define EMPATHY_PREFS_USE_CONN                     "use-conn"
+#define EMPATHY_PREFS_STARTUPSTATUS                "startup-status"

You should also update data/org.gnome.Empathy.gschema.xml.in

::: src/empathy.c
@@ +512,3 @@
     }
 
+  startup_status = g_settings_get_int (self->gsettings, EMPATHY_PREFS_STARTUPSTATUS);

That's wrong, you shouldn't store an int but a (s, s) tuple containing the status and the message. Like we do in the presence chooser. See also http://telepathy.freedesktop.org/spec/Connection_Interface_Simple_Presence.html
Comment 18 Mohamed Amine Il Idrissi 2010-12-06 17:15:41 UTC
(In reply to comment #17)
> Review of attachment 175848 [details] [review]:
> 
> Thanks for your patch. Here is my review.
> 
> Your patch introduced some trailing spaces, you can use "make check" to catch
> them.
> 
> Ideally, the chooser should also include the preset defined by the
> EmpathyPresenceChooser.
> 
> ::: libempathy/empathy-gsettings.h
> @@ +28,3 @@
>  #define EMPATHY_PREFS_SCHEMA "org.gnome.Empathy"
>  #define EMPATHY_PREFS_USE_CONN                     "use-conn"
> +#define EMPATHY_PREFS_STARTUPSTATUS                "startup-status"
> 
> You should also update data/org.gnome.Empathy.gschema.xml.in

Whoops, I changed org.gnome.Empathy.gschema.xml instead, that's why I didn't notice it. Thanks for noticing :)

> ::: src/empathy.c
> @@ +512,3 @@
>      }
> 
> +  startup_status = g_settings_get_int (self->gsettings,
> EMPATHY_PREFS_STARTUPSTATUS);
> 
> That's wrong, you shouldn't store an int but a (s, s) tuple containing the
> status and the message. Like we do in the presence chooser. See also
> http://telepathy.freedesktop.org/spec/Connection_Interface_Simple_Presence.html

Okay, will get to it. Thanks for reviewing :)
Comment 19 Mohamed Amine Il Idrissi 2010-12-06 17:44:20 UTC
Well, after checking the code, I don't see a (s, s) tuple in the presence chooser code. Do you mean get_state_and_status () in empathy-presence-chooser.c? Or am I simply blinded by my n00biness? :p
Comment 20 Guillaume Desmottes 2010-12-07 09:37:37 UTC
We want to save 2 things:
- The well known string identified of the presence type (such as 'available', 'away', etc). You can get it using empathy_presence_to_str().
- The status message which is user type (like "At the Pub" for example).

Looking at empathy-presence-chooser, I thin it's doing too many things to be of use it. You'll probably have to use a GtkComboBox and the EmpathyStatusPresets directly. See empathy_presence_chooser_create_menu(), that's where we fill the chooser with the different presences.
Comment 21 Guillaume Desmottes 2011-05-11 07:31:17 UTC
*** Bug 649833 has been marked as a duplicate of this bug. ***
Comment 22 Duncan Lithgow 2011-05-18 18:17:21 UTC
This bug has gone off track into a discussion of how a user chosses their online status when they start Empathy. That is not what this bug is about - please make a new bug specific to that issue (I agree about making a combo box)

This bug is about the very general problem, at least in Gnome, of how to have applications start at login. That problem has not seen any movement as far as I know.
Comment 23 Chris Wilson 2012-06-14 18:21:15 UTC
I was just wondering if there was any progress on this bug? Are there still plans to add a combo box for setting a default status at login? What about the issue regarding confusion over the purpose of the auto-connect option?
Comment 24 GNOME Infrastructure Team 2018-05-22 13:19:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/39.