Subject: [bug#38931] gnu: Add gnome-music.

From: Pierre Neidhardt <[email-masked]>
Date: Fri, 03 Apr 2020 21:02:21 +0200

Hi,

I tried this patch but it does not work for me outside GNOME, in an
empty environment.

I added gsettings-desktop-schemas and the following arguments

--8<---------------cut here---------------start------------->8---
(arguments
    `(#:phases
      (modify-phases %standard-phases
        (add-after 'install 'wrap
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (wrap-program (string-append out "/bin/gnome-music")
                `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")
                                           ,(string-append out "/lib/python"
                                                           "3.7"
                                                           ;; TODO: How do we get  version-major+minor?
                                                           ;; (version-major+minor
                                                           ;;  (package-version python))
                                                           "/site-packages")))
                `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
                `("GRL_PLUGIN_PATH"        ":" prefix (,(getenv "GRL_PLUGIN_PATH")))))
            #t)))))
--8<---------------cut here---------------end--------------->8---

But it still fails to start with

--8<---------------cut here---------------start------------->8---
> /gnu/store/j3ja6m8sarvpki7pxzaxfc4r85bkmlzy-gnome-music-3.34.2/bin/gnome-music 
removed, grl-bookmarks
removed, grl-metadata-store
removed, grl-filesystem
removed, grl-podcasts

(org.gnome.Music:29122): GLib-GIO-ERROR **: 20:59:08.968: Settings schema 'org.gnome.Music' is not installed
trace/breakpoint trap
--8<---------------cut here---------------end--------------->8---

Any idea?

-- 
Pierre Neidhardt
https://ambrevar.xyz/