1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-05 21:02:42 +02:00

Issue #12789: make sure gimp-debug-tool is correctly found on Windows.

This commit is contained in:
Jehan
2025-02-24 18:37:58 +01:00
parent c3bc4e5336
commit 0d98500984

View File

@@ -328,12 +328,17 @@ gimp_eek (const gchar *reason,
* takes precedence over the command line argument.
*/
#ifdef G_OS_WIN32
const gchar *gimpdebug = "gimp-debug-tool-" GIMP_TOOL_VERSION ".exe";
#ifdef ENABLE_RELOCATABLE_RESOURCES
const gchar *gimpdebug = g_build_filename (gimp_installation_directory (), "bin",
"gimp-debug-tool-" GIMP_TOOL_VERSION ".exe", NULL);
#else
const gchar *gimpdebug = BINDIR "/gimp-debug-tool-" GIMP_TOOL_VERSION ".exe";
#endif
#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);
"libexec", "gimp-debug-tool-" GIMP_TOOL_VERSION, NULL);
#else
const gchar *gimpdebug = LIBEXECDIR "/gimp-debug-tool-" GIMP_TOOL_VERSION;
#endif