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 778228 - gnome-calculator 3.23 identifies as 'gnome-calculator' instead of 'Calculator'
gnome-calculator 3.23 identifies as 'gnome-calculator' instead of 'Calculator'
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
3.23.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-06 06:49 UTC by Jeremy Bicha
Modified: 2017-02-12 18:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2017-02-06 06:49:11 UTC
gnome-calculator 3.23.4 on Ubuntu GNOME 17.04 Alpha using the GNOME3 Staging PPA

1. Start gnome-calculator from the Activities Overview

What happens
============
'gnome-calculator' shows in the top bar as the app name instead of 'Calculator'
'gnome-calculator' shows in the Alt-Tab switcher instead of 'Calculator'

This is a regression from gnome-calculator 3.22.2.
Comment 1 Jeremy Bicha 2017-02-06 18:22:16 UTC
Huh. Actually in Unity, it's the opposite.

gnome-calculator 3.22.2's titlebar says 'gnome-calculator'; with 3.23.4 it says 'Calculator'.
Comment 2 Robert Roth 2017-02-06 18:50:25 UTC
Strange:
* I today did experiment with the master version on fedora, for me "Calculator" is displayed everywhere
* asked around on #gnome-hackers to find about who and how should match app title to a window, but have not received a response
* checked gnome-shell code, and it looks like it is a desktop-file based lookup (GAppInfo)

So if you have any idea for the fix on this, let me know, I'll be among the first ones to try it and review it. The rename happened for flatpak compatibility and to align with other GNOME apps having the same naming style, and I did consider it a necessary evil. It looks like it is worse as I thought :( I will ask a couple more times on #gnome-hackers and maybe #gnome-shell, maybe I'll find something.
Comment 3 Jeremy Bicha 2017-02-06 19:52:33 UTC
Actually, I only experience this bug in Wayland. It works fine in X.

My system is GNOME 3.22. Ubuntu 17.04 does have the gnome-session login shell .patch:
https://git.gnome.org/browse/gnome-session/commit/?id=7e307f8ddb
Comment 4 Robert Roth 2017-02-06 22:01:24 UTC
Ok, now I am really confused:
* on Fedora on wayland calculator 3.22 does show gnome-calculator
* on Fedora on x11 calculator 3.22 does show Calculator
* on Fedora on x11 calculator master does show Calculator
* on Fedora on wayland calculator master does show Calculator.
I can only hope that for most people we will have one of the last three (or any other similar) option.
Comment 5 Jeremy Bicha 2017-02-07 11:28:07 UTC
I can't easily test on Fedora since gnome-calculator 3.23.4 hasn't been officially packaged there yet.

I get the same bug on Debian Stretch (3.23 does not identify correctly in Wayland)
Comment 6 Jeremy Bicha 2017-02-11 12:55:35 UTC
I've seen this kind of bug elsewhere in GNOME. Some GNOME developers have figured out how to work around it.

Here are some of the other bugs I've filed about it affecting other apps:

https://bugzilla.gnome.org/705323
https://bugzilla.gnome.org/770865
https://bugzilla.gnome.org/778490
Comment 7 Robert Roth 2017-02-12 15:53:08 UTC
(In reply to Jeremy Bicha from comment #6)
> I've seen this kind of bug elsewhere in GNOME. Some GNOME developers have
> figured out how to work around it.
> 
> Here are some of the other bugs I've filed about it affecting other apps:
> 
> https://bugzilla.gnome.org/705323
> https://bugzilla.gnome.org/770865
> https://bugzilla.gnome.org/778490

Thanks Jeremy for the investigation, I have read through your references, tried some of the solutions (e.g. setting program class) but they did not help. During the investigation however I have found that the application id is not correctly set, which might be the reason for the problem on your side. I have pushed a fix for this, hoping that you can test it and get back with the result (either confirm the fix or "reject" it, in which case I will investigate further).
Comment 8 Jeremy Bicha 2017-02-12 18:25:43 UTC
Yes, that commit fixes the issue for me on Unity and GNOME Shell in Ubuntu 17.04 Alpha.