libgimpconfig: support $(gimp_installation_dir) in config paths

This commit is contained in:
Michael Natterer 2012-05-23 11:50:32 +02:00
parent 010b28f39e
commit f931f05006
1 changed files with 2 additions and 0 deletions

View File

@ -366,6 +366,8 @@ gimp_config_path_expand_only (const gchar *path,
s = gimp_plug_in_directory ();
else if (strcmp (token, "gimp_sysconf_dir") == 0)
s = gimp_sysconf_directory ();
else if (strcmp (token, "gimp_installation_dir") == 0)
s = gimp_installation_directory ();
if (!s)
s = g_getenv (token);