Mercurial > pidgin.yaz
comparison libpurple/util.c @ 15899:4e44a9eaceec
Go back to using ~/.gaim/ until we decide what to do.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 24 Mar 2007 23:28:25 +0000 |
parents | ed80ec6be33c |
children | b4593c886933 |
comparison
equal
deleted
inserted
replaced
15898:fd6e3382e734 | 15899:4e44a9eaceec |
---|---|
2182 #else | 2182 #else |
2183 return wpurple_data_dir(); | 2183 return wpurple_data_dir(); |
2184 #endif | 2184 #endif |
2185 } | 2185 } |
2186 | 2186 |
2187 /* returns a string of the form ~/.purple, where ~ is replaced by the user's home | 2187 /* returns a string of the form ~/.gaim, where ~ is replaced by the user's home |
2188 * dir. Note that there is no trailing slash after .purple. */ | 2188 * dir. Note that there is no trailing slash after .gaim. */ |
2189 const char * | 2189 const char * |
2190 purple_user_dir(void) | 2190 purple_user_dir(void) |
2191 { | 2191 { |
2192 if (custom_home_dir != NULL && strlen(custom_home_dir) > 0) { | 2192 if (custom_home_dir != NULL && strlen(custom_home_dir) > 0) { |
2193 strcpy ((char*) &home_dir, (char*) &custom_home_dir); | 2193 strcpy ((char*) &home_dir, (char*) &custom_home_dir); |
2194 } else { | 2194 } else { |
2195 const gchar *hd = purple_home_dir(); | 2195 const gchar *hd = purple_home_dir(); |
2196 | 2196 |
2197 if (hd) { | 2197 if (hd) { |
2198 g_strlcpy((char*) &home_dir, hd, sizeof(home_dir)); | 2198 g_strlcpy((char*) &home_dir, hd, sizeof(home_dir)); |
2199 g_strlcat((char*) &home_dir, G_DIR_SEPARATOR_S ".purple", | 2199 g_strlcat((char*) &home_dir, G_DIR_SEPARATOR_S ".gaim", |
2200 sizeof(home_dir)); | 2200 sizeof(home_dir)); |
2201 } | 2201 } |
2202 } | 2202 } |
2203 | 2203 |
2204 return home_dir; | 2204 return home_dir; |