How to supply parameters in URI schema?

Posted by abhishekgarg on Super User See other posts from Super User or by abhishekgarg
Published on 2013-10-28T20:57:43Z Indexed on 2013/10/28 21:57 UTC
Read the original article Hit count: 269

Filed under:
|
|

I just started working with URI schema and successfully created one in Windows and Linux as well, but I am not able to parse any parameters to it.

In Linux I am trying to open a file "test.py" in gedit, so for schema part I used these commands:

gconftool -2 -t string /desktop/gnome/url-handlers/geditapp/command "gedit %s"
gconftool -2 -t bool/desktop/gnome/url-handlers/geditapp/enabled true

This is creating the URI protocol and I'm able to open the application with the Web-browser, but its not taking the parameters for the file I want to open, so I'm using the following command:

<a href="geditapp:/opt/test/myfile.py">open</a>

Which opens the gedit but without the file. Can someone please help me with this?

© Super User or respective owner

Related posts about Web

Related posts about url