unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: jackhill@jackhill.us
Cc: 41058@debbugs.gnu.org
Subject: bug#41058: GNOME Maps fails to start in GNOME
Date: Mon, 11 May 2020 14:31:55 +0200	[thread overview]
Message-ID: <b18bc68959c9955226c4720524ab0600f4a152eb.camel@student.tugraz.at> (raw)
In-Reply-To: alpine.DEB.2.20.2005102353270.5735@marsh.hcoop.net

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

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

[-- Attachment #2: 0001-gnu-gnome-maps-Patch-DBUS-service.patch --]
[-- Type: text/x-patch, Size: 1157 bytes --]

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(+)

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


  parent reply	other threads:[~2020-05-11 12:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 18:44 bug#41058: core-updates: GNOME Maps doesn't start sirgazil via Bug reports for GNU Guix
2020-05-04 14:38 ` Marius Bakke
2020-05-09 15:33 ` sirgazil via Bug reports for GNU Guix
2020-05-10 21:14   ` Marius Bakke
2020-05-11  3:57     ` bug#41058: GNOME Maps fails to start in GNOME Jack Hill
2020-05-11 12:31 ` Leo Prikler [this message]
2020-12-29 13:04   ` Leo Prikler
2020-10-15  6:30 ` Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b18bc68959c9955226c4720524ab0600f4a152eb.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=41058@debbugs.gnu.org \
    --cc=jackhill@jackhill.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).