aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-06-30 22:04:00 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-06-30 22:04:00 +0200
commitde3bcfcb9fc5304865c71d2518ea79d44b3ccbc4 (patch)
treec296e344603d0c430a7ef8d02bf0b77358740031 /uzbl.c
parent753dacc04d8e395bb23273d915fc5517c155cc8c (diff)
parentbb52eaf6f3ecdb6c2b8e49f1485891d8188f76ff (diff)
Merge commit 'dequis/stdin' into experimental
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/uzbl.c b/uzbl.c
index dd76e25..66f9595 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -2493,6 +2493,11 @@ settings_init () {
for (i = 0; default_config[i].command != NULL; i++) {
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");
@@ -2780,8 +2785,6 @@ main (int argc, char* argv[]) {
/* WebInspector */
set_up_inspector();
- create_stdin();
-
if (verbose_override > uzbl.state.verbose)
uzbl.state.verbose = verbose_override;