mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +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;
|
char **nargv;
|
||||||
|
|
||||||
if (fgets(buffer, PATH_MAX, stdin) == NULL) {
|
if (fgets(buffer, PATH_MAX, stdin) == NULL) {
|
||||||
netsurf_quit = true;
|
/* end of input or read error so issue QUIT */
|
||||||
return;
|
sprintf(buffer, "QUIT\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove newline */
|
/* remove newline */
|
||||||
|
@ -86,7 +86,11 @@ static void quit_handler(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
static nserror set_defaults(struct nsoption_s *defaults)
|
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;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user