Commit 6e07c839 authored by Michael Natterer's avatar Michael Natterer 😴

Bug 722939 - asking for an absolute path as gimpdir results in a path...

...relative to the home folder

If an absolute path was given to the --with-gimpdir configure option,
use that path literally.
parent e8a180c0
......@@ -1946,7 +1946,7 @@ AM_CONDITIONAL(ENABLE_GIMP_CONSOLE, test "x$enable_gimp_console" != xno)
# Possibly change default gimpdir from .gimp-major.minor
gimpdir=GIMP
AC_ARG_WITH(gimpdir, [ --with-gimpdir=DIR change default gimpdir from $XDG_CONFIG_HOME/GIMP/gimp_user_version to $XDG_CONFIG_HOME/DIR/gimp_user_version],
AC_ARG_WITH(gimpdir, [ --with-gimpdir=DIR change default gimpdir from $XDG_CONFIG_HOME/GIMP/gimp_user_version to $XDG_CONFIG_HOME/DIR/gimp_user_version, or to DIR if DIR is an absolute path],
if eval "test x$with_gimpdir != x"; then
if eval "test x$with_gimpdir != xyes"; then
gimpdir=$with_gimpdir
......
......@@ -251,6 +251,10 @@ gimp_directory (void)
gimp_dir = g_build_filename (gimp_data_directory (), env_gimp_dir, NULL);
}
}
else if (g_path_is_absolute (GIMPDIR))
{
gimp_dir = g_strdup (GIMPDIR);
}
else
{
#ifdef PLATFORM_OSX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment