- do not list %{_desktopdir}/* -- dangerous, could list directories unexpectedly
[packages/ed2k-gtk-gui.git] / ed2k-gtk-gui-home_etc.patch
CommitLineData
7829cd63
JK
1diff -urN ed2k-gtk-gui-0.6.3.orig/ed2k_gui/icons.c ed2k-gtk-gui-0.6.3/ed2k_gui/icons.c
2--- ed2k-gtk-gui-0.6.3.orig/ed2k_gui/icons.c 2004-01-16 22:24:19.000000000 +0100
3+++ ed2k-gtk-gui-0.6.3/ed2k_gui/icons.c 2004-09-28 22:39:34.974793016 +0200
4@@ -53,7 +53,9 @@
5 gchar *hdiconpath;
6 GDir *dir;
7
8- homedir = g_getenv ("HOME");
9+ homedir = g_getenv ("HOME_ETC");
10+ if (!homedir) homedir = g_getenv("HOME");
11+
12
13 if (opt_get_str(OPT_GUI_ICON_THEME))
14 themes = g_slist_append (themes, g_strdup(opt_get_str(OPT_GUI_ICON_THEME)));
15diff -urN ed2k-gtk-gui-0.6.3.orig/ed2k_gui/options.c ed2k-gtk-gui-0.6.3/ed2k_gui/options.c
16--- ed2k-gtk-gui-0.6.3.orig/ed2k_gui/options.c 2004-08-09 15:53:05.000000000 +0200
17+++ ed2k-gtk-gui-0.6.3/ed2k_gui/options.c 2004-09-28 22:38:21.783919720 +0200
18@@ -889,11 +889,11 @@
31ab7d8d 19 static void
20 opt_init_prefpath (void)
21 {
22- const gchar *homedir;
23+ const gchar *homedir = getenv("HOME_ETC");
24
25 G_FREE(prefpath);
26
27- homedir = g_get_home_dir();
28+ if (!homedir) homedir = g_get_home_dir();
31ab7d8d 29
7829cd63
JK
30 #ifdef G_OS_WIN32
31 /* win98: g_get_home_dir() returns NULL
This page took 0.05877 seconds and 4 git commands to generate.