app: Make possible to 'gimp-debug-tool' work relocatable
Following 50b6ba63
This is specially useful for AppImage and Snap
This commit is contained in:
parent
d25c97e7c9
commit
9821d91745
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue