prefs_initialized = TRUE;
}
+/* Reset preferences */
+void
+prefs_reset(void)
+{
+ prefs_initialized = FALSE;
+ init_prefs();
+}
/* Read the preferences file, fill in "prefs", and return a pointer to it.
}
/* Construct the pathname of the user's preferences file. */
- pf_path = get_persconffile_path(PF_NAME, FALSE);
+ pf_path = get_persconffile_path(PF_NAME, TRUE, FALSE);
/* Read the user's preferences file, if it exists. */
*pf_path_return = NULL;
*/
if (pf_path_return != NULL) {
- pf_path = get_persconffile_path(PF_NAME, TRUE);
+ pf_path = get_persconffile_path(PF_NAME, TRUE, TRUE);
if ((pf = eth_fopen(pf_path, "w")) == NULL) {
*pf_path_return = pf_path;
return errno;