[gimp/gimp-2-10] gimp: macOS: fix for file export dialogs GIF and PNG. Authored by @pietervo, and he should be credit
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] gimp: macOS: fix for file export dialogs GIF and PNG. Authored by @pietervo, and he should be credit
- Date: Tue, 19 Jan 2021 10:43:32 +0000 (UTC)
commit 8f38cb9900b6d5af952ecd15fdaafcc44b01b700
Author: Pieter van Oostrum <pieter vanoostrum org>
Date: Sun Jan 10 16:48:18 2021 -0500
gimp: macOS: fix for file export dialogs GIF and PNG. Authored by @pietervo, and he should be credited
with this.
(cherry picked from commit c264f0b7055ec392328d9565a231dbaec6da6ae8)
libgimpbase/gimpenv.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/libgimpbase/gimpenv.c b/libgimpbase/gimpenv.c
index d4040c80a7..26844aa5ac 100644
--- a/libgimpbase/gimpenv.c
+++ b/libgimpbase/gimpenv.c
@@ -435,6 +435,20 @@ gimp_installation_directory (void)
g_free (tmp);
g_free (tmp2);
}
+ else if (! strcmp (g_path_get_basename (dirname), "plug-ins"))
+ {
+ /* same for plug-ins in subdirectory, go three levels up from prefix/lib/gimp/x.y */
+
+ gchar *tmp = g_path_get_dirname (dirname);
+ gchar *tmp2 = g_path_get_dirname (tmp);
+ gchar *tmp3 = g_path_get_dirname (tmp2);
+
+ toplevel = g_path_get_dirname (tmp3);
+
+ g_free (tmp);
+ g_free (tmp2);
+ g_free (tmp3);
+ }
else
{
/* if none of the above match, we assume that we are really in a bundle */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]