]>
Commit | Line | Data |
---|---|---|
002ce2c8 | 1 | diff -Nru anjuta-1.1.98.orig/src/anjuta_dirs.c anjuta-1.1.98/src/anjuta_dirs.c |
2 | --- anjuta-1.1.98.orig/src/anjuta_dirs.c 2003-06-26 06:41:48.000000000 +0200 | |
3 | +++ anjuta-1.1.98/src/anjuta_dirs.c 2003-11-11 20:23:21.000000000 +0100 | |
4 | @@ -30,6 +30,7 @@ | |
5 | AnjutaDirs* | |
6 | anjuta_dirs_new() | |
7 | { | |
8 | + gchar *home_etc = getenv("HOME_ETC"); | |
9 | AnjutaDirs *ad; | |
10 | ad = g_malloc (sizeof (AnjutaDirs)); | |
11 | if (ad) | |
12 | @@ -40,7 +41,7 @@ | |
13 | ad->help = anjuta_res_get_help_dir (); | |
14 | ad->doc = anjuta_res_get_doc_dir (); | |
15 | ad->home = g_strdup (g_get_home_dir ()); | |
16 | - ad->settings = g_strconcat (ad->home, "/.anjuta" PREF_SUFFIX, NULL); | |
17 | + ad->settings = g_strconcat (home_etc ? home_etc : ad->home, "/.anjuta" PREF_SUFFIX, NULL); | |
18 | ad->first_time = FALSE; | |
19 | ||
20 | if (file_is_directory (ad->settings) == FALSE) | |
21 | diff -Nru anjuta-1.1.98.orig/src/anjuta-plugins.c anjuta-1.1.98/src/anjuta-plugins.c | |
22 | --- anjuta-1.1.98.orig/src/anjuta-plugins.c 2003-04-15 13:05:21.000000000 +0200 | |
23 | +++ anjuta-1.1.98/src/anjuta-plugins.c 2003-11-11 20:32:26.000000000 +0100 | |
24 | @@ -217,7 +217,7 @@ | |
25 | gboolean anjuta_plugins_load(void) | |
26 | { | |
27 | gchar *plugin_dir; | |
28 | - char const * const home_dir = getenv ("HOME"); | |
29 | + char const * const home_dir = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv ("HOME"); | |
30 | app->addIns_list = scan_AddIns_in_directory(app, PACKAGE_PLUGIN_DIR, NULL); | |
31 | /* Load the user plugins */ | |
32 | if (home_dir != NULL) | |
33 | diff -Nru anjuta-1.1.98.orig/src/main.c anjuta-1.1.98/src/main.c | |
34 | --- anjuta-1.1.98.orig/src/main.c 2003-11-11 20:18:35.000000000 +0100 | |
35 | +++ anjuta-1.1.98/src/main.c 2003-11-11 20:26:39.000000000 +0100 | |
36 | @@ -61,9 +61,10 @@ | |
37 | { | |
38 | gchar *config_file, *config_dir; | |
39 | gchar *config_version; | |
40 | + gchar *home_etc = getenv("HOME_ETC"); | |
41 | PropsID prop; | |
42 | ||
43 | - config_dir = g_strconcat(g_get_home_dir(), "/.anjuta" PREF_SUFFIX, NULL); | |
44 | + config_dir = g_strconcat(home_etc ? home_etc : g_get_home_dir(), "/.anjuta" PREF_SUFFIX, NULL); | |
45 | config_file = g_strconcat(config_dir, "/session.properties", NULL); | |
46 | ||
47 | prop = prop_set_new(); | |
48 | diff -Nru anjuta-1.1.98.orig/src/mainmenu_callbacks.c anjuta-1.1.98/src/mainmenu_callbacks.c | |
49 | --- anjuta-1.1.98.orig/src/mainmenu_callbacks.c 2003-11-06 13:10:40.000000000 +0100 | |
50 | +++ anjuta-1.1.98/src/mainmenu_callbacks.c 2003-11-11 20:28:44.000000000 +0100 | |
51 | @@ -1999,7 +1999,8 @@ | |
52 | on_edit_user_properties1_activate (GtkMenuItem *menuitem, | |
53 | gpointer user_data) | |
54 | { | |
55 | - gchar* user_propfile = g_strconcat (app->dirs->home, "/.anjuta" PREF_SUFFIX "/user.properties", NULL); | |
56 | + gchar* home_etc = getenv("HOME_ETC"); | |
57 | + gchar* user_propfile = g_strconcat (home_etc ? home_etc : app->dirs->home, "/.anjuta" PREF_SUFFIX "/user.properties", NULL); | |
58 | anjuta_goto_file_line_mark (user_propfile, 1, FALSE); | |
59 | g_free (user_propfile); | |
60 | } | |
61 | diff -Nru anjuta-1.1.98.orig/src/preferences.c anjuta-1.1.98/src/preferences.c | |
62 | --- anjuta-1.1.98.orig/src/preferences.c 2003-09-09 08:55:02.000000000 +0200 | |
63 | +++ anjuta-1.1.98/src/preferences.c 2003-11-11 20:30:39.000000000 +0100 | |
64 | @@ -1016,6 +1016,7 @@ | |
65 | anjuta_preferences_instance_init (AnjutaPreferences *pr) | |
66 | { | |
67 | gchar *propdir, *propfile, *str; | |
68 | + gchar *home_etc = getenv("HOME_ETC"); | |
69 | ||
70 | pr->priv = g_new0(AnjutaPreferencesPriv, 1); | |
71 | pr->priv->properties = NULL; | |
72 | @@ -1086,7 +1087,7 @@ | |
73 | g_free (propfile); | |
74 | g_free (propdir); | |
75 | ||
76 | - propdir = g_strconcat (g_get_home_dir(), "/.anjuta" PREF_SUFFIX "/", NULL); | |
77 | + propdir = g_strconcat (home_etc ? home_etc : g_get_home_dir(), "/.anjuta" PREF_SUFFIX "/", NULL); | |
78 | propfile = g_strconcat (propdir, "user.properties", NULL); | |
79 | ||
80 | /* Create user.properties file, if it doesn't exist */ | |
81 | @@ -1100,7 +1101,7 @@ | |
82 | g_free (propdir); | |
83 | g_free (propfile); | |
84 | ||
85 | - propdir = g_strconcat (g_get_home_dir(), "/.anjuta" PREF_SUFFIX "/", NULL); | |
86 | + propdir = g_strconcat (home_etc ? home_etc : g_get_home_dir(), "/.anjuta" PREF_SUFFIX "/", NULL); | |
87 | propfile = g_strconcat (propdir, "session.properties", NULL); | |
88 | prop_read (pr->props_session, propfile, propdir); | |
89 | g_free (propdir); |