diff options
| author | twells46 <tom@wellsth.com> | 2026-01-25 15:17:01 -0600 |
|---|---|---|
| committer | twells46 <tom@wellsth.com> | 2026-01-25 15:17:01 -0600 |
| commit | a2b45396d4f368782a6600adc499c3a5b2734be8 (patch) | |
| tree | 2b2141f5b68b000f6339bce3a0a4447ea588d2db /surf.c | |
| parent | 48517e586cdc98bc1af7115674b554cc70c8bc2e (diff) | |
Diffstat (limited to 'surf.c')
| -rw-r--r-- | surf.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -73,6 +73,7 @@ typedef enum { MediaManualPlay, PDFJSviewer, PreferredLanguages, + Private, RunInFullscreen, ScrollBars, ShowIndicators, @@ -1088,6 +1089,12 @@ cleanup(void) while (clients) destroyclient(clients); + if (curconfig[Private].val.i) { + pid_t p = fork(); + if (!p) + execl("/usr/bin/rm", "/usr/bin/rm", "-r", "-f", "/tmp/surf", NULL); + } + close(spair[0]); close(spair[1]); g_free(cookiefile); @@ -2075,6 +2082,12 @@ main(int argc, char *argv[]) defconfig[Inspector].val.i = 1; defconfig[Inspector].prio = 2; break; + case 'p': + defconfig[Private].val.i = 1; + certdir = "/tmp/surf/certificates/"; + cachedir = "/tmp/surf/cache"; + cookiefile = "/tmp/surf/cookies.txt"; + break; case 'r': scriptfile = EARGF(usage()); break; |