GNOME Maps fails to start in GNOME

  • Done
  • quality assurance status badge
Details
5 participants
  • Jack Hill
  • Leo Prikler
  • Maxim Cournoyer
  • Marius Bakke
  • sirgazil
Owner
unassigned
Submitted by
sirgazil
Severity
normal
Merged with
S
S
sirgazil wrote on 3 May 2020 20:44
core-updates: GNOME Maps doesn't start
(name . bug-guix)(address . bug-guix@gnu.org)
171dbdaa3a9.b16ae7023339.6597484424773462280@zoho.com
This happens in both master and core-updates, although I don't know if the former fails for the same reason. It also happens in both real machine and virtual machine.


## Steps to reproduce

Assuming you are using the Guix System with GNOME:

1. Go to Activities → Show Applications (nine dots button) → All
2. Click on Maps


## Expected result

GNOME Maps starts.


## Unexpected result

GNOME Maps does not starts. You see the GNOME Maps application menu loading next to the "Activities" button in the GNOME desktop for a few seconds, but the application never starts.


## Additional information

In both, real and virtual machines, GNOME Maps starts when run from a terminal. It prints the following message though:

```
$ gnome-maps

(org.gnome.Maps:22887): Gjs-WARNING **: 13:35:50.971: JS ERROR: Gio.IOErrorEnum: Ya existe un objeto exportado para la interfaz org.gnome.Sysprof3.Profiler en /org/gtk/Profiler
vfunc_dbus_unregister@resource:///org/gnome/Maps/js/application.js:269:9
main@resource:///org/gnome/Maps/js/main.js:57:12
run@resource:///org/gnome/gjs/modules/package.js:222:12
start@resource:///org/gnome/gjs/modules/package.js:206:5
@/gnu/store/agrz0vryg6ipcz4qh3q1addwdiizbkrw-gnome-maps-3.34.2/share/gnome-maps/org.gnome.Maps:2:1
```

In both, real and virtual machines, GNOME Maps also starts when run from the minishell (Alt+F2 and type gnome-maps).


## System information

```
GNOME Maps 3.34.1

$ LANG=C guix describe
Generation 78 May 02 2020 18:00:20 (current)
guix 7b07852
branch: core-updates
commit: 7b07852ddb334c92bcef69666f21c599f1f0fa79
sirgazil-x ef6ac93
branch: master
commit: ef6ac9331a7847fdec6f0eb199524b1b755ba0df
```


---
M
M
Marius Bakke wrote on 4 May 2020 16:38
87k11r22b6.fsf@devup.no
sirgazil via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (2 lines)
> This happens in both master and core-updates, although I don't know if the former fails for the same reason. It also happens in both real machine and virtual machine.

Fixed on core-updates with commit
7d7fedf6f022e6114959684658f927e191ab40b1. Thanks for the report!
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6wKM0ACgkQoqBt8qM6
VPpfeQf/aQnm4TcTewWxWgwjT81cJrNysCDBsOPJBrCPfTy2qCmHMskhAvSbqN3u
7ZmyUXwos83Fhi1HXf/0iHTXaot/Gxxay0C32uImUSG+UQJnmySfggBFtZOy6t1A
4RcMst6TTrkZiBaTqFtGqS9NwB2Bw0kTHQX4fVLSaW9wycF0PTO7WQJ6lUk6Ursv
O7Pl54VDwaHiraddM9noh2WC0H0jYH/WMO/rCMYi0oRJoyBftt+tkkPE2ZKnFlCP
Ni6NsCgXFTuePm6BLkRx6CKWF1KtsRGfyZvHJczmOEEw5I9TaDDvB6cscg1mLTf+
/9me4YXQtwcfcuxzzpKKcyWuZxALHw==
=UqKj
-----END PGP SIGNATURE-----

Closed
S
S
sirgazil wrote on 9 May 2020 17:33
core-updates: GNOME Maps doesn't start
(name . 41058)(address . 41058@debbugs.gnu.org)
171fa1201b1.c0ae4c1359425.5859174034587680986@zoho.com
I still can reproduce the problem though, in both real and virtual machines.

????????????????????
$ LANG=C guix describe
Generation 80 May 08 2020 15:18:18 (current)
sirgazil-x ef6ac93
branch: master
commit: ef6ac9331a7847fdec6f0eb199524b1b755ba0df
guix 35c43fc
branch: master
commit: 35c43fcdbb408a5755efebc13241dd9082360aa1
????????????????????
M
M
Marius Bakke wrote on 10 May 2020 23:14
(address . control@debbugs.gnu.org)
87ftc71ohk.fsf@devup.no
reopen 41058
retitle GNOME Maps fails to start in GNOME
thanks

sirgazil via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (2 lines)
> I still can reproduce the problem though, in both real and virtual machines.

Oh, I had missed that you mentioned it worked from a terminal (it did
not for me on i3).

I hope one of the GNOME users around here can have a look.
M
M
Marius Bakke wrote on 10 May 2020 23:16
I'm a doofus
(address . control@debbugs.gnu.org)
87d07b1oen.fsf@devup.no
retitle 41058 GNOME Maps fails to start in GNOME
thanks
J
J
Jack Hill wrote on 11 May 2020 05:57
bug#41058: GNOME Maps fails to start in GNOME
(name . Marius Bakke)(address . mbakke@fastmail.com)
alpine.DEB.2.20.2005102353270.5735@marsh.hcoop.net
On Sun, 10 May 2020, Marius Bakke wrote:

Toggle quote (9 lines)
> sirgazil via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
>
>> I still can reproduce the problem though, in both real and virtual machines.
>
> Oh, I had missed that you mentioned it worked from a terminal (it did
> not for me on i3).
>
> I hope one of the GNOME users around here can have a look.

I think that this is probably the same issue as:

In that case the problem application was GNOME-Weather. Pierre worked
around it there by calling the executable directly in the .desktop files
rather than using gapplication launch…

It would be nice to figure out what's going wrong with gapplication launch
though.

Should the issues be merged?

Best,
Jack
L
L
Leo Prikler wrote on 11 May 2020 14:31
(address . jackhill@jackhill.us)(address . 41058@debbugs.gnu.org)
b18bc68959c9955226c4720524ab0600f4a152eb.camel@student.tugraz.at
I think, I figured out the root cause of this. GApplication launches
apps through dbus, looking up the respective service in share/dbus-1.
The service for GNOME Maps does not start the actual program, but much
rather a gjs wrapper, which we don't patch -- and which we can't simply
patch, because that leads to other errors, that rival our own when it
comes to how cryptic they are.

I've attached a patch, in which I rewrite the DBUS service to use the
actual program. I have not fully tested this patch, as `guix
environment --ad-hoc gnome-maps` appears not to be strong enough to
influence the gapplication lookup. However, if you launch `gnome-maps
--gapplication-service` in one terminal, then quickly switch to some
other and launch `gnome-maps` normally, the one that spawned the
service is the one that gets used, so claiming the bus in this fashion
*should* work.

Regards,
Leo
From d709692ba02e7f3a4c2f9bd8ca43374131a81a7a Mon Sep 17 00:00:00 2001
From: Leo Prikler <leo.prikler@student.tugraz.at>
Date: Mon, 11 May 2020 13:30:44 +0200
Subject: [PATCH] gnu: gnome-maps: Patch DBUS service.

* gnu/packages/geo.scm (gnome-maps):
[arguments]<#:phases>: Add patch-dbus-service.
---
gnu/packages/geo.scm | 6 ++++++
1 file changed, 6 insertions(+)

Toggle diff (17 lines)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 6c68d40..b0d33d9 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -160,6 +160,12 @@ topology functions.")
(substitute* "meson_post_install.py"
(("gtk-update-icon-cache") "true"))
#t))
+ (add-after 'unpack 'patch-dbus-service
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "data/org.gnome.Maps.service.in"
+ (("@pkgdatadir@/org.gnome.Maps")
+ (string-append (assoc-ref outputs "out") "/bin/gnome-maps")))
+ #t))
(add-after 'install 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
--
libgit2 1.0.0
L
L
Leo Prikler wrote on 15 Oct 2020 08:30
(address . leo.prikler@student.tugraz.at)(address . 41058@debbugs.gnu.org)
3bb5d4454ed777d1ed310edaa45361dd9b864ce9.camel@student.tugraz.at
Bumping this, as it has been months since I've posted my fix.
For the record, it might also be worth looking into #39324, which uses
a different workaround, and seeing whether the dbus service can be
patched in a similar manner.

Regards, Leo
M
M
Maxim Cournoyer wrote on 15 Nov 2020 04:16
control message for bug #40490
(address . control@debbugs.gnu.org)
875z67fgxj.fsf@gmail.com
merge 40490 41058
quit
L
L
Leo Prikler wrote on 29 Dec 2020 14:04
Re: bug#41058: GNOME Maps fails to start in GNOME
(address . jackhill@jackhill.us)(address . 41058-done@debbugs.gnu.org)
484bd30125a505230d20c8199bb610fbf22a83ec.camel@student.tugraz.at
Hello Guix,

I've just pushed a variant of the patch I proposed as
a2d5f9f60d0f440e5d5ce1a1cc81743b27d6cede. I tested it yesterday in a
VM; it should work.

Regards,
Leo
Closed
?