comparison src/gaimrc.c @ 8596:56360561af5e

[gaim-migrate @ 9347] " This patch creates a new command line argument ('-c' or '--config') that allows the location of tha gaim prefs files to be located somewhere other than in ~/.gaim The patch also removes the -f argument as it is no longer relevant since .gaimrc is all but gone. The one "weirdness" is that for the session managment support, the --config argument will allways appear to be specified and will contain either the custom value (if specified) or the canonical version of ~/.gaim (if no custom -c is specified). If this should be done differently, let me know." --Daniel Atallah committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 06 Apr 2004 14:29:51 +0000
parents 9773e3f3ec7a
children 543b19a96ac5
comparison
equal deleted inserted replaced
8595:1d5e31e518fc 8596:56360561af5e
1481 gaim_debug(GAIM_DEBUG_INFO, "gaimrc", 1481 gaim_debug(GAIM_DEBUG_INFO, "gaimrc",
1482 "Currently saving. Will request load.\n"); 1482 "Currently saving. Will request load.\n");
1483 return; 1483 return;
1484 } 1484 }
1485 1485
1486 if (opt_rcfile_arg) 1486 if (gaim_home_dir())
1487 g_snprintf(buf, sizeof(buf), "%s", opt_rcfile_arg);
1488 else if (gaim_home_dir())
1489 g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S ".gaimrc", gaim_home_dir()); 1487 g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S ".gaimrc", gaim_home_dir());
1490 else { 1488 else {
1491 set_defaults(); 1489 set_defaults();
1492 return; 1490 return;
1493 } 1491 }
1543 if (request_save_prefs) { 1541 if (request_save_prefs) {
1544 gaim_debug(GAIM_DEBUG_INFO, "gaimrc", 1542 gaim_debug(GAIM_DEBUG_INFO, "gaimrc",
1545 "Saving preferences on request\n"); 1543 "Saving preferences on request\n");
1546 request_save_prefs = 0; 1544 request_save_prefs = 0;
1547 } 1545 }
1548 } else if (opt_rcfile_arg) {
1549 g_snprintf(buf, sizeof(buf), _("Could not open config file %s."), opt_rcfile_arg);
1550 gaim_notify_error(NULL, NULL, buf, NULL);
1551 set_defaults();
1552 } else { 1546 } else {
1553 set_defaults(); 1547 set_defaults();
1554 } 1548 }
1555 1549
1556 prefs_initial_load = 1; 1550 prefs_initial_load = 1;