After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 107224 - URL Handlers does not expand variables properly
URL Handlers does not expand variables properly
Status: RESOLVED DUPLICATE of bug 90592
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-02-27 21:41 UTC by garth
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description garth 2003-02-27 21:36:37 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.

Comment 1 Andrew Sobala 2003-03-01 11:14:32 UTC
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 ***