]> git.pld-linux.org Git - packages/gimp.git/blame - gimp-home_etc.patch
- support for HOME_ETC
[packages/gimp.git] / gimp-home_etc.patch
CommitLineData
78308d5b 1diff -Nru gimp-1.3.22.orig/app/core/gimpimagefile.c gimp-1.3.22/app/core/gimpimagefile.c
2--- gimp-1.3.22.orig/app/core/gimpimagefile.c 2003-08-26 23:12:55.000000000 +0200
3+++ gimp-1.3.22/app/core/gimpimagefile.c 2003-11-22 19:28:32.000000000 +0100
4@@ -181,6 +181,7 @@
5 GimpObjectClass *gimp_object_class;
6 GimpViewableClass *viewable_class;
7 gint i;
8+ gchar *home_etc = g_getenv("HOME_ETC");
9
10 parent_class = g_type_class_peek_parent (klass);
11
12@@ -207,10 +208,10 @@
13
14 g_type_class_ref (GIMP_TYPE_IMAGE_TYPE);
15
16- thumb_dir = g_build_filename (g_get_home_dir(), ".thumbnails", NULL);
17+ thumb_dir = g_build_filename (home_etc ? home_etc : g_get_home_dir(), ".thumbnails", NULL);
18
19 for (i = 0; i < G_N_ELEMENTS (thumb_sizes); i++)
20- thumb_subdirs[i] = g_build_filename (g_get_home_dir(), ".thumbnails",
21+ thumb_subdirs[i] = g_build_filename (home_etc ? home_etc : g_get_home_dir(), ".thumbnails",
22 thumb_sizes[i].dirname, NULL);
23
24 thumb_fail_subdir = thumb_subdirs[0];
25diff -Nru gimp-1.3.22.orig/libgimpbase/gimpenv.c gimp-1.3.22/libgimpbase/gimpenv.c
26--- gimp-1.3.22.orig/libgimpbase/gimpenv.c 2003-10-25 21:02:18.000000000 +0200
27+++ gimp-1.3.22/libgimpbase/gimpenv.c 2003-11-22 19:23:31.000000000 +0100
28@@ -95,13 +95,13 @@
29 static gchar *gimp_dir = NULL;
30
31 const gchar *env_gimp_dir;
32- const gchar *home_dir;
33+ const gchar *home_dir = g_getenv("HOME_ETC");
34
35 if (gimp_dir)
36 return gimp_dir;
37
38 env_gimp_dir = g_getenv ("GIMP2_DIRECTORY");
39- home_dir = g_get_home_dir ();
40+ if (!home_dir) home_dir = g_get_home_dir ();
41
42 if (env_gimp_dir)
43 {
This page took 0.037106 seconds and 4 git commands to generate.