Subject: [PATCH] gnu: alsa-scarlett-gui: Wrap with GSETTINGS_SCHEMA_DIR.
From: Robby Zambito <[email-masked]>
To: [email-masked]
Cc: Robby Zambito <[email-masked]>
Date: Mon, 29 Jan 2024 10:10:14 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/music.scm (alsa-scarlett-gui)[arguments]: Wrap with
GSETTINGS_SCHEMA_DIR.
---
 gnu/packages/music.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index cd06aeddda..78d8c399e6 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -233,6 +233,14 @@ (define-public alsa-scarlett-gui
                  (string-append "	"
                                 #$(cc-for-target) " -o")))
               (chdir "src")))
+          (add-after 'install 'wrap-program
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+              (wrap-program (string-append (assoc-ref outputs "out")
+                                           "/bin/alsa-scarlett-gui")
+                ;; For GtkFileChooserDialog.
+                `("GSETTINGS_SCHEMA_DIR" =
+                  (,(string-append (assoc-ref inputs "gtk")
+                                   "/share/glib-2.0/schemas"))))))
           (delete 'configure))))
     (inputs
      (list alsa-lib glib gtk))

base-commit: 65dc2d40cb113382fb98796f1d04099f28cab355
-- 
2.41.0