aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Dequis <dx@dxzone.com.ar>2009-06-10 18:29:13 -0300
committerGravatar Dequis <dx@dxzone.com.ar>2009-06-10 18:29:13 -0300
commit97526404f52875d82d584f18420be72fdc300d93 (patch)
tree8f835841285cfc8d756ae02904ecbb4c6f9fc86a
parent34a0ec4c9091c97aed9950d1b5c1fcdf01a6cf27 (diff)
Add disable_stdin config option
-rw-r--r--uzbl.c6
-rw-r--r--uzbl.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/uzbl.c b/uzbl.c
index f1c27b1..24b0315 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -99,6 +99,7 @@ const struct {
/* --------------------------------------------------------------------------------------- */
{ "uri", PTR(uzbl.state.uri, STR, 1, cmd_load_uri)},
{ "verbose", PTR(uzbl.state.verbose, INT, 1, NULL)},
+ { "disable_stdin", PTR(uzbl.behave.disable_stdin, INT, 1, NULL)},
{ "mode", PTR(uzbl.behave.mode, INT, 0, NULL)},
{ "inject_html", PTR(uzbl.behave.inject_html, STR, 0, cmd_inject_html)},
{ "base_url", PTR(uzbl.behave.base_url, STR, 1, NULL)},
@@ -2548,8 +2549,9 @@ main (int argc, char* argv[]) {
/* WebInspector */
set_up_inspector();
-
- create_stdin();
+
+ if (!uzbl.behave.disable_stdin)
+ create_stdin();
if (verbose_override > uzbl.state.verbose)
uzbl.state.verbose = verbose_override;
diff --git a/uzbl.h b/uzbl.h
index ee9e693..8dd2c02 100644
--- a/uzbl.h
+++ b/uzbl.h
@@ -144,6 +144,7 @@ typedef struct {
gboolean insert_mode;
gboolean status_top;
gboolean reset_command_mode;
+ gboolean disable_stdin;
gchar* modkey;
guint modmask;
guint http_debug;