summaryrefslogtreecommitdiffstats
path: root/network/elinks/option-patches/0020-no-connect-by-default.patch
blob: e36c9aa006695efe3637176ff4d7c0f1288964f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff -Naur elinks-git20131231/doc/man/man1/elinks.1.in elinks-git20131231.patched/doc/man/man1/elinks.1.in
--- elinks-git20131231/doc/man/man1/elinks.1.in	2013-12-18 10:38:57.000000000 -0500
+++ elinks-git20131231.patched/doc/man/man1/elinks.1.in	2020-06-25 03:02:54.523412259 -0400
@@ -141,12 +141,13 @@
 Look up specified host and print all DNS resolved IP addresses\&.
 .RE
 .PP
-\fB\-no\-connect\fR \fI[0|1]\fR (default: 0)
+\fB\-no\-connect\fR \fI[0|1]\fR (default: 1)
 .RS 4
 Run
 ELinks
-as a separate instance instead of connecting to an existing instance\&. Note that normally no runtime state files (bookmarks, history, etc\&.) are written to the disk when this option is used\&. See also
-\-touch\-files\&.
+as a separate instance instead of connecting to an existing instance\&. Enabled
+by default in this build; use \fB\-no\-connect 0\fR to connect to an existing
+instance\&.
 .RE
 .PP
 \fB\-no\-home\fR \fI[0|1]\fR (default: 0)
@@ -238,13 +239,13 @@
 Print given URLs in source form to stdout\&.
 .RE
 .PP
-\fB\-touch\-files\fR \fI[0|1]\fR (default: 0)
+\fB\-touch\-files\fR \fI[0|1]\fR (default: 1)
 .RS 4
 When enabled, runtime state files (bookmarks, history, etc\&.) are written to disk, even when
 \-no\-connect
 or
 \-session\-ring
-is used\&. The option has no effect if not used in conjunction with any of these options\&.
+is used\&. The option has no effect if not used in conjunction with any of these options\&. This option is enabled by default; use \fB\-touch\-files 0\fR to disable\&.
 .RE
 .PP
 \fB\-verbose\fR \fI<num>\fR (default: 1)
diff -Naur elinks-git20131231/src/config/cmdline.c elinks-git20131231.patched/src/config/cmdline.c
--- elinks-git20131231/src/config/cmdline.c	2013-12-18 10:38:57.000000000 -0500
+++ elinks-git20131231.patched/src/config/cmdline.c	2020-06-25 02:58:31.595442844 -0400
@@ -848,11 +848,9 @@
 		"addresses.")),
 
 	INIT_OPT_BOOL("", N_("Run as separate instance"),
-		"no-connect", 0, 0,
+		"no-connect", 0, 1,
 		N_("Run ELinks as a separate instance instead of connecting "
-		"to an existing instance. Note that normally no runtime state "
-		"files (bookmarks, history, etc.) are written to the disk "
-		"when this option is used. See also -touch-files.")),
+		"to an existing instance. Enabled by default in this build.")),
 
 	INIT_OPT_BOOL("", N_("Disable use of files in ~/.elinks"),
 		"no-home", 0, 0,
@@ -921,7 +919,7 @@
 	INIT_OPT_COMMAND("", NULL, "stdin", OPT_HIDDEN, redir_cmd, NULL),
 
 	INIT_OPT_BOOL("", N_("Touch files in ~/.elinks when running with -no-connect/-session-ring"),
-		"touch-files", 0, 0,
+		"touch-files", 0, 1,
 		N_("When enabled, runtime state files (bookmarks, history, "
 		"etc.) are written to disk, even when -no-connect or "
 		"-session-ring is used. The option has no effect if not used "