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 754956 - Missing Empathy status icon
Missing Empathy status icon
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2015-09-13 12:57 UTC by Balló György
Modified: 2017-02-14 01:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
empathy: don't detect GNOME Flashback as GNOME Shell (1.35 KB, patch)
2015-09-17 11:56 UTC, Alberts Muktupāvels
none Details | Review
empathy: don't detect GNOME Flashback as GNOME Shell (1.19 KB, patch)
2016-07-25 12:40 UTC, Alberts Muktupāvels
none Details | Review
empathy: don't detect GNOME Flashback as GNOME Shell (1.92 KB, patch)
2017-02-14 01:04 UTC, Balló György
committed Details | Review

Description Balló György 2015-09-13 12:57:04 UTC
Currently, Empathy detects GNOME Flashback as GNOME Shell because "org.gnome.Shell" D-Bus name is available:
https://git.gnome.org/browse/empathy/tree/src/empathy.c#n250

This causes the following problems:
1. Status icon is missing.
2. Auto-away feature is disabled.
3. No logout on exit.

Empathy should be able to detect properly if it's really run under GNOME Shell.
Comment 1 Alberts Muktupāvels 2015-09-17 11:56:10 UTC
Created attachment 311546 [details] [review]
empathy: don't detect GNOME Flashback as GNOME Shell

Under GNOME Flashback we are forced to use org.gnome.Shell dbus
name. So if Empathy is used in GNOME Flashback it does not work
correctly.

When shell is detected run extra check to make sure that Empathy
is used under real GNOME Shell.
Comment 2 Alberts Muktupāvels 2015-09-17 11:57:08 UTC
I don't use Empathy, please test patch to make sure it really works.
Comment 3 Balló György 2015-11-04 08:37:55 UTC
I tested the patch. Yes, it works as expected in GNOME Flashback, and remains the same in GNOME Shell. Thanks!
Comment 4 Michael Catanzaro 2016-07-22 01:06:51 UTC
Review of attachment 311546 [details] [review]:

I think you can use g_strv_contains to simplify this:

if (g_strv_contains (names, GNOME_SHELL_BUS_NAME) &&
    !g_strv_contains (names, GNOME_FLASHBACK_BUS_NAME))
  {
    self->shell_running = TRUE;
  }
Comment 5 Alberts Muktupāvels 2016-07-25 12:40:07 UTC
Created attachment 332104 [details] [review]
empathy: don't detect GNOME Flashback as GNOME Shell
Comment 6 Balló György 2017-02-03 20:00:55 UTC
Is there any progress? Could you please commit this patch?
Comment 7 Balló György 2017-02-03 20:42:54 UTC
Note that g_strv_contains is not available before glib2 2.44, so the requirements need to be adjusted if you apply the second version of patch (together with fixing some deprecations).
Comment 8 Balló György 2017-02-14 01:04:34 UTC
Created attachment 345686 [details] [review]
empathy: don't detect GNOME Flashback as GNOME Shell

Here is an updated patch with adjusted requirements. It builds fine now.
Comment 9 Michael Catanzaro 2017-02-14 01:12:58 UTC
Attachment 345686 [details] pushed as 1eabf36 - empathy: don't detect GNOME Flashback as GNOME Shell