uzbl takes the first un-parsed argument as the uri, no need for --uri
authorMason Larobina <mason.larobina@gmail.com>
Mon, 20 Jul 2009 14:10:51 +0000 (22:10 +0800)
committerMason Larobina <mason.larobina@gmail.com>
Mon, 20 Jul 2009 14:10:51 +0000 (22:10 +0800)
examples/data/uzbl/scripts/uzbl_tabbed.py

index b84f758..a1ce952 100755 (executable)
@@ -769,6 +769,7 @@ class UzblTabbed:
         tab.show()
         self.notebook.append_page(tab)
         sid = tab.get_id()
+        uri = uri.strip()
 
         fifo_filename = 'uzbl_fifo_%s_%0.2d' % (self.wid, pid)
         fifo_socket = os.path.join(config['fifo_dir'], fifo_filename)
@@ -778,11 +779,6 @@ class UzblTabbed:
         if switch is None:
             switch = config['switch_to_new_tabs']
 
-
-        # Create meta-instance and spawn child
-        if len(uri.strip()):
-            uri = '--uri %s' % uri
-
         uzbl = self.UzblInstance(self, tab, fifo_socket, socket_file, pid,\
           uri, switch)
         self.tabs[tab] = uzbl