calculator does not start using special-key on keyboard

Bug #1780308 reported by Tom Lü
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

just installed 18.04 on my desktop.

Using the calculator-special-key on my keyboard calculator does not start. :(
Using the menu the calc just starts as expected.

Looking for an error in gnome-logs, I found this one:

gsd-media-keys
Could not find application 'org.gnome.Calculator.desktop' or 'gnome-calculator.desktop'

Further investigation:
Since 18.04 calc is installed as a snap.
Looks like my special-key tries to start calc, but does not success due to an error in linking to the snap-system.

As a workaround I installed the package gnome-calculator:
sudo apt-get install gnome-calculator

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apache2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Rainey (ckrzen) wrote :

Thanks @mottenkiller.

I've marked my bug, https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1773589, as a duplicate of yours since you actually uncovered the mechanics of the problem.

affects: apache2 (Ubuntu) → gnome-settings-daemon (Ubuntu)
Revision history for this message
Tom Lü (mottenkiller) wrote :

Thx @ckrainey

Maybe the problem is attached to media-keys plugin of gsd:

settings - devices - keyboard - launchers - launch calculator
--> (in this case) falsely using command 'org.gnome.Calculator.desktop' or 'gnome-calculator.desktop'

Using a custom shortcut with command 'gnome-calculator' works as a charm.
Even if I remove package gnome-calculator; with only snap gnome-calculator installed. ;-)

Imo this should be the solution.

So if I am right and I understood the sources without any errors, simply adding 'gnome-calculator' to line 2437 in 'gsd-media-keys-manager.c' should fix the bug:

 do_execute_desktop_or_desktop (manager, "org.gnome.Calculator.desktop", "gnome-calculator.desktop", "gnome-calculator", timestamp);

https://github.com/GNOME/gnome-settings-daemon/blob/6f4cbea41e40877efe96d17d822e4d3c831ec25c/plugins/media-keys/gsd-media-keys-manager.c#L2436

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.