From 9821d917455dfbadd97762b20fe3d0a2632c6faa Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 23 Jan 2025 07:58:12 -0300 Subject: [PATCH] app: Make possible to 'gimp-debug-tool' work relocatable Following 50b6ba63 This is specially useful for AppImage and Snap --- app/errors.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/errors.c b/app/errors.c index cedcef0058..d29ea01643 100644 --- a/app/errors.c +++ b/app/errors.c @@ -331,6 +331,9 @@ gimp_eek (const gchar *reason, const gchar *gimpdebug = "gimp-debug-tool-" GIMP_TOOL_VERSION ".exe"; #elif defined (PLATFORM_OSX) const gchar *gimpdebug = "gimp-debug-tool-" GIMP_TOOL_VERSION; +#elif !defined (G_OS_WIN32) && !defined (PLATFORM_OSX) && defined ENABLE_RELOCATABLE_RESOURCES + const gchar *gimpdebug = g_build_filename (gimp_installation_directory (), + "libexec", "gimp-debug-tool-" GIMP_TOOL_VERSION, NULL); #else const gchar *gimpdebug = LIBEXECDIR "/gimp-debug-tool-" GIMP_TOOL_VERSION; #endif