[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
An additional note on the topic: after inspecting my gconf settings, a number of commands associated to some protocols under /desktop/gnome /url-handlers/ had a "%u" instead of "%s" in their value, which leads me to think that some program corrupted the values as opposed to manual tinkering. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
Interestingly, the default value for this key is defined in /usr/share/gconf/defaults/10_libgnomevfs2-common, and its default value is "sensible-browser %s". It might be that my configuration got messed up with at some point. Marking invalid as this is not an issue with a given package or implementation after all. ** Changed in: gnome-vfs (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
I dug further into the code of gnome-vfs, and it turns out that it inspects the value of the GConf key /desktop/gnome/url- handlers/http/command when required to open a URL. The code replaces all occurrences of "%s" with the URL passed as a parameter. On my desktop, the default value for this key is "firefox %u". Setting it to "firefox %s" fixes the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
gnome_url_show(...) calls gnome_vfs_url_show(...) under the hood. The issue is present there, as demonstrated by the following piece of C code: // compile with: gcc test.c `pkg-config --cflags --libs gnome- vfs-2.0` #include int main(int argc, char **argv) { g_type_init(); gnome_vfs_url_show("http://ubuntu.com";); return 0; } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
Re-targetting to the gnome-vfs source package. ** Package changed: libgnomeui (Ubuntu) => gnome-vfs (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
Under the covers, gnome.ui.HRef calls gnome_url_show_with_env(...) to open a URL. The following piece of C code demonstrates that the issue seems to be in the implementation of gnome_url_show(...): // compile with: gcc test.c `pkg-config --cflags --libs libgnome-2.0` #include int main(int argc, char **argv) { g_type_init(); gnome_url_show("http://ubuntu.com";, NULL); return 0; } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libgnomeui/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
Re-targetting to the libgnomeui source package. ** Package changed: revelation (Ubuntu) => libgnomeui (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libgnomeui/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
I dug further, and the issue also appears in the C implementation, the issue is not in the Python wrapper itself. The following piece of C code demonstrates it: // compile with: gcc `pkg-config --cflags --libs gtk+-2.0 libgnomeui-2.0` test.c #include #include int main(int argc, char **argv) { gtk_init(&argc, &argv); GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL); GtkWidget* href = gnome_href_new("http://ubuntu.com";, "Ubuntu"); gtk_container_add(GTK_CONTAINER(window), href); gtk_widget_show(href); gtk_widget_show(window); gtk_main(); return 0; } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libgnomeui/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
This bug is still there in 12.04. Marking confirmed as I can consistently reproduce. ** Changed in: revelation (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/revelation/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
I did a bit of investigation, and it appears that revelation uses a gnome.ui.HRef (http://developer.gnome.org/libgnomeui/stable/GnomeHRef.html) to display URLs. It appears that this widget itself is broken, not the way revelation uses it. The following piece of Python code demonstrates the issue: #!/usr/bin/python import pygtk pygtk.require('2.0') import gtk import gnome.ui if __name__ == '__main__': href = gnome.ui.HRef('http://ubuntu.com', 'Ubuntu') window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.add(href) href.show() window.show() gtk.main() -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/revelation/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905139] Re: Opening an URL launches the default browser at address "%u"
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905139 Title: Opening an URL launches the default browser at address "%u" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/revelation/+bug/905139/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs