mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
set defaults for cookie and url database
This commit is contained in:
parent
aca826ef69
commit
4dd5a9c114
@ -58,8 +58,8 @@ monkey_process_command(void)
|
||||
char **nargv;
|
||||
|
||||
if (fgets(buffer, PATH_MAX, stdin) == NULL) {
|
||||
netsurf_quit = true;
|
||||
return;
|
||||
/* end of input or read error so issue QUIT */
|
||||
sprintf(buffer, "QUIT\n");
|
||||
}
|
||||
|
||||
/* remove newline */
|
||||
|
@ -86,7 +86,11 @@ static void quit_handler(int argc, char **argv)
|
||||
*/
|
||||
static nserror set_defaults(struct nsoption_s *defaults)
|
||||
{
|
||||
/* currently no default overrides */
|
||||
/* Set defaults for absent option strings */
|
||||
nsoption_setnull_charp(cookie_file, strdup("~/.netsurf/Cookies"));
|
||||
nsoption_setnull_charp(cookie_jar, strdup("~/.netsurf/Cookies"));
|
||||
nsoption_setnull_charp(url_file, strdup("~/.netsurf/URLs"));
|
||||
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user