GNOME Bugzilla – Bug 107224
URL Handlers does not expand variables properly
Last modified: 2004-12-22 21:47:04 UTC
Package: control-center Severity: normal Version: ? Synopsis: URL Handlers does not expand variables properly Bugzilla-Product: control-center Bugzilla-Component: general Description: I'm trying to set up a different default URL Handler in the Gnome Control center. There is no documentation on this, so my only guide is the existing default and the commands for the other protocols. Based on this, I've gleened that %s *should* be expanded to a URL when the protocol is invoked. However, this expansion seems to depend on some hidden an not very obvious rules. For example, a command of: mozilla %s Expands properly and starts a new mozilla process. However, I want new URLs to simply create a new tab in my existing mozilla process, so I tried: mozilla -remote 'openurl(%s, new-tab)' Unfortunately, for some reason %s is not expanded and I get an error from mozilla that says "www.%s.com could not be found. Please check the name and try again". Note that the %s in that error message is literal; I'm not using it as a substitute. Comming from a Perl background and noticing that the other protocols wrapped %s in double quotes I tried this as well: mozilla -remote "openurl(%s, new-tab)" which does not work either. What are the rules for expansion? Why would %s expand in one situation and not other. Why would the existance of other command line options make any difference? ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-02-27 16:36 ------- The original reporter (garth@peirjove.com) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, control-center-maint@bugzilla.gnome.org.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 90592 ***