aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Christer Sjöholm <hcs@furuvik.net>2011-03-20 12:07:58 +0100
committerGravatar Christer Sjöholm <hcs@furuvik.net>2011-03-20 12:07:58 +0100
commit23559dab4f44ccfef4edb7db19e2ec3e3671bf5a (patch)
treeaba752ee53d8534172cdbf63d7e8f580e44650be /examples
parent931dd7496af6b3e6ad1d129335a7806ee245b14d (diff)
Fix for uzbl-tabbed new-tab.
Some times the uri may be a unicode string, so we convert it to a str as required by gobject.spawn_async(). This happens when a page want to open an url in a new window.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/scripts/uzbl-tabbed2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/uzbl-tabbed b/examples/data/scripts/uzbl-tabbed
index 0502951..04635fc 100755
--- a/examples/data/scripts/uzbl-tabbed
+++ b/examples/data/scripts/uzbl-tabbed
@@ -1024,7 +1024,7 @@ class UzblTabbed:
title = config['new_tab_title']
cmd = ['uzbl-browser', '-n', name, '-s', str(sid),
- '--connect-socket', self.socket_path, '--uri', uri]
+ '--connect-socket', self.socket_path, '--uri', str(uri)]
gobject.spawn_async(cmd, flags=gobject.SPAWN_SEARCH_PATH)
uzbl = UzblInstance(self, tab, name, uri, title, switch)