whiskey0201 / cosmographia

Automatically exported from code.google.com/p/cosmographia
0 stars 0 forks source link

Notes on adding url scheme handlers to firefox and chrome #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Firefox
* Type "about:config" into the address bar
* Click through warning
* (To see others, enter "network.protocol-handler" into the filter)
* Right click to "New > String"
* Enter "network.protocol-handler.app.cel" (for example)
* Enter "/usr/bin/celestia" (example ubuntu/dpkg location)
+ For some interesting notes see 
+ http://code.google.com/p/chromium/issues/detail?id=18113

Chrome
* See http://code.google.com/p/chromium/issues/detail?id=18113#c5
* Desktop registry for Gnome or KDE
* gconftool-2 --set --type string /desktop/gnome/url-handlers/cel/command 
"celestia %s"

Original issue reported on code.google.com by john.douglas.pritchard on 19 Nov 2011 at 7:34

GoogleCodeExporter commented 8 years ago
Gnome has changed, see 
http://www.hadess.net/2010/10/new-control-center-and-you.html
In short, need
file /usr/share/applications/<app>.desktop 
entry MimeType=x-scheme-handler/<app-sch>
entry Exec=exef %U
postscript update-desktop-database

For example, copy the attached to 
"/usr/share/applications/cosmographia.desktop" and EDIT, and then execute the 
following command as root "update-desktop-database".

Test with xdg-open 
'cosmo:Dawn?frame=icrf&jd=2455803.595868&x=-0.007808&y=0.010616&z=-0.007165&qw=0
.053027&qx=-0.572807&qy=0.640473&qz=0.508798&ts=1&fov=50'

Original comment by john.douglas.pritchard on 10 Dec 2011 at 12:57

Attachments:

GoogleCodeExporter commented 8 years ago
Error: cosmographia opens with "unable to location file 
/home/jdp/src/Cosmographia/build/cosmo:Dawn?frame=icrf&..."

Original comment by john.douglas.pritchard on 10 Dec 2011 at 12:59

GoogleCodeExporter commented 8 years ago
This should be a fixed with the addition of a new command line flag (-u) for 
Cosmographia. Usage details are here: 
http://code.google.com/p/cosmographia/wiki/CommandLine

Original comment by clau...@gmail.com on 20 Dec 2011 at 12:16