mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 17:59:37 +00:00
gimp: macOS: fix for file export dialogs GIF and PNG. Authored by @pietervo, and he should be credited with this.
This commit is contained in:
parent
4e8087be85
commit
c264f0b705
1 changed files with 14 additions and 0 deletions
|
@ -434,6 +434,20 @@ gimp_installation_directory (void)
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
g_free (tmp2);
|
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
|
else
|
||||||
{
|
{
|
||||||
/* if none of the above match, we assume that we are really in a bundle */
|
/* if none of the above match, we assume that we are really in a bundle */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue