aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Tom Adams <tom@holizz.com>2009-07-18 10:02:00 +0100
committerGravatar Tom Adams <tom@holizz.com>2009-07-18 10:02:00 +0100
commit3ec3fb533dd0f077e361f47a666066c2f5072bd2 (patch)
treeb069738a033f63684ec2226635e890fc781af4ff /uzbl.c
parent771e50957142f9b366ae73e16594003544e6dbee (diff)
Take argv[1] as URI.
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uzbl.c b/uzbl.c
index dfd61a6..ffad99b 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -2730,6 +2730,8 @@ main (int argc, char* argv[]) {
retreive_geometry();
gchar *uri_override = (uzbl.state.uri ? g_strdup(uzbl.state.uri) : NULL);
+ if (argc > 1 && !uzbl.state.uri)
+ uri_override = g_strdup(argv[1]);
gboolean verbose_override = uzbl.state.verbose;
settings_init ();