How to supply parameters in URI schema?
- by abhishekgarg
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?