Commit 751218cc authored by Øyvind Kolås's avatar Øyvind Kolås

Applied patch from Elrond <elrond+gegl.org@samba.tng.org> that

makes GEGL use XDG base directory specification for swap and user
plug-in directories.
* gegl/gegl-init.c: (gegl_swap_dir), (gegl_post_parse_hook):

svn path=/trunk/; revision=2959
parent 7895a65e
2009-03-15 Øyvind Kolås <pippin@gimp.org>
Applied patch from Elrond <elrond+gegl.org@samba.tng.org> that
makes GEGL use XDG base directory specification for swap and user
plug-in directories.
* gegl/gegl-init.c: (gegl_swap_dir), (gegl_post_parse_hook):
2009-03-12 Sven Neumann <sven@gimp.org> 2009-03-12 Sven Neumann <sven@gimp.org>
* gegl/process/gegl-processor.c: applied patch from Henrik Akesson. * gegl/process/gegl-processor.c: applied patch from Henrik Akesson.
......
...@@ -96,8 +96,8 @@ gegl_swap_dir (void) ...@@ -96,8 +96,8 @@ gegl_swap_dir (void)
} }
else else
{ {
swapdir = g_build_filename (g_get_home_dir(), swapdir = g_build_filename (g_get_user_cache_dir(),
"." GEGL_LIBRARY, GEGL_LIBRARY,
"swap", "swap",
NULL); NULL);
} }
...@@ -513,9 +513,9 @@ gegl_post_parse_hook (GOptionContext *context, ...@@ -513,9 +513,9 @@ gegl_post_parse_hook (GOptionContext *context,
gegl_module_db_load (module_db, module_path); gegl_module_db_load (module_db, module_path);
g_free (module_path); g_free (module_path);
/* also load plug-ins from ~/.gegl-0.0/plug-ins */ /* also load plug-ins from ~/.local/share/gegl-0.0/plugins */
module_path = g_build_filename (g_get_home_dir (), module_path = g_build_filename (g_get_user_data_dir (),
"." GEGL_LIBRARY, GEGL_LIBRARY,
"plug-ins", "plug-ins",
NULL); NULL);
......
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