GNU bug report logs

#78537 GIMP startup crash on minimal xorg/wm unless gtk+ in profile

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #52 received at 78537@debbugs.gnu.org (full text, mbox, reply):

Received: (at 78537) by debbugs.gnu.org; 6 Jul 2025 19:32:05 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 06 15:32:05 2025
Received: from localhost ([127.0.0.1]:58859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1uYV5o-0000v2-VM
	for submit@debbugs.gnu.org; Sun, 06 Jul 2025 15:32:05 -0400
Received: from mail-10624.protonmail.ch ([79.135.106.24]:13181)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <runciter@whispers-vpn.org>)
 id 1uYV5l-0000u5-F4
 for 78537@debbugs.gnu.org; Sun, 06 Jul 2025 15:32:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org;
 s=protonmail2; t=1751830313; x=1752089513;
 bh=bEZ0juJrjtjRhQlfuMvJEmTjLBV3WwvmHKj8siDc6g0=;
 h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=LzaZ7E1Pz3+xHRqCkN6nVpn19r86a8A4Y6qoWzPow0snfEQCxDc7VGZj6UUVTqSlg
 3TZJyiWD7qo9x4mPjgKr3cNJQXR60YvpkuWwbkruTn7qxw3YYloep/8SL5eL399JkH
 5/Ikc48QDPZdgLm4/IyK4bIRwR2EErGxU8yMV//ASn+8sAtG6dAxe8GT+rPc8O92oU
 UOqda/AZoj2adR7EVAyRc31GUnAY39AQY89IObrx7zN10EK+blZiTgFQiT8zKplZ9R
 HqbXJTXNQ1TgdxDopbUVQixYb56o0WGOFmbIfzOUx5gdxPFAQu+4rigH0tVjt5NO4i
 eYiv8yB8tchUw==
Date: Sun, 06 Jul 2025 19:31:48 +0000
To: 78537@debbugs.gnu.org
From: Runciter <runciter@whispers-vpn.org>
Subject: [PATCH v4] gnu: gimp-3: add wrappings to enable gimp startup in pure
 profile.
Message-ID: <8a4ade9a12745a805037096373726b01df63a70e.1751830256.git.runciter@whispers-vpn.org>
Feedback-ID: 119317227:user:proton
X-Pm-Message-ID: 73109ff7fc6aa37d3e2de52435ffcf55e78b11f6
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 78537
Cc: maxim.cournoyer@gmail.com, Runciter <runciter@whispers-vpn.org>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -2.0 (--)
* gnu/packages/gimp.scm (gimp-3)[arguments]<phases>:
  Wrap value of GDK_PIXBUF_MODULE_FILE in wrapper script.
  Add wrapping for gtk+ data files in prefix to XDG_DATA_DIRS.
  Add wrapping for ahared-mime-info data files in prefix to XDG_DATA_DIRS.
  Change wrapping of GI_TYPELIB_PATH and GUIX_PYTHONPATH to prefix.

Change-Id: I2cae7408f373bd46fbc3941ed2a8e2eee40633ec
---
 gnu/packages/gimp.scm | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index c602d3083a..66c57c0e36 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2021, 2022, 2025 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2025 Runciter <runciter@whispers-vpn.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -460,13 +461,19 @@ (define-public gimp-3
                    (for-each
                     (lambda (prog)
                       (wrap-program prog
-                        ;; Ensure GI_TYPELIB_PATH is not extended from the
+                        ;; Ensure GI_TYPELIB_PATH is not suffixed to the
                         ;; environment, as it could cause Gimp to crash (see
                         ;; bug#77921).
-                        `("GI_TYPELIB_PATH" =
+                        `("GI_TYPELIB_PATH" prefix
                           (,(getenv "GI_TYPELIB_PATH")))
-                        `("GUIX_PYTHONPATH" suffix
-                          (,(getenv "GUIX_PYTHONPATH")))))
+                        `("GUIX_PYTHONPATH" prefix
+                          (,(getenv "GUIX_PYTHONPATH")))
+                        `("GDK_PIXBUF_MODULE_FILE" =
+                          (,(getenv "GDK_PIXBUF_MODULE_FILE")))
+                        `("XDG_DATA_DIRS" prefix
+                          (,(string-append #$gtk+ "/share")))
+                        `("XDG_DATA_DIRS" prefix
+                          (,(string-append #$shared-mime-info "/share")))))
                     (find-files (string-append #$output "/bin")
                                 (lambda (_ stat)
                                   (eq? 'regular (stat:type stat))))))))))

base-commit: a5768ec09332a625c709a20f76f0227aab2a9e5f
-- 
2.50.0






Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Sep 9 08:54:58 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.