aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dequis <dx@dxzone.com.ar>2009-06-20 01:20:49 -0300
committerGravatar Dequis <dx@dxzone.com.ar>2009-06-20 01:20:49 -0300
commitf1a114c9e201b09eb81ba3e93365440f8e95f956 (patch)
tree398b6ddffefb95113dc01f5bc087c319ed68f1ea /uzbl.c
parentf70e2d36a664c9571eeb520341d18246fb4170cb (diff)
Revert "Replaced disable_stdin with uzbl -c -"
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/uzbl.c b/uzbl.c
index 8ed8788..751cf6b 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)},
@@ -2383,11 +2384,6 @@ settings_init () {
parse_cmd_line(default_config[i].command, NULL);
}
- if (g_strcmp0(s->config_file, "-") == 0) {
- s->config_file = NULL;
- create_stdin();
- }
-
if (!s->config_file) {
s->config_file = find_xdg_file (0, "/uzbl/config");
}
@@ -2674,6 +2670,9 @@ main (int argc, char* argv[]) {
/* WebInspector */
set_up_inspector();
+ if (!uzbl.behave.disable_stdin)
+ create_stdin();
+
if (verbose_override > uzbl.state.verbose)
uzbl.state.verbose = verbose_override;