app: Make possible to 'gimp-debug-tool' work relocatable

Following 50b6ba63

This is specially useful for AppImage and Snap
This commit is contained in:
Bruno 2025-01-23 07:58:12 -03:00
parent d25c97e7c9
commit 9821d91745
No known key found for this signature in database

View file

@ -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