[gimp/gimp-2-8] libgimpconfig: support $(gimp_installation_dir) in config paths (cherry picked from commit f931f0500



commit ca5549a55e868847e9cd8b43069de5a2cda38698
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 23 11:50:32 2012 +0200

    libgimpconfig: support $(gimp_installation_dir) in config paths
    (cherry picked from commit f931f0500639fc21912a549477befe63b4998f60)

 libgimpconfig/gimpconfig-path.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c
index 43d03bb..2578fe1 100644
--- a/libgimpconfig/gimpconfig-path.c
+++ b/libgimpconfig/gimpconfig-path.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]