Jump to content

Firefox and secondlife: protocol


You are about to reply to a thread that has been inactive for 2439 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I use firefox, and firestorm.  I'd like the secondlife maps 'Visit this location' to work, but my firefox says that the protocol is not supported.  Does anyone know how to add it?

I know I can copy the URL to the viewer, but I'd like to avoid:
 

The address wasn't understood

Firefox doesn't know how to open this address, because one of the following protocols (secondlife) isn't associated with any program or is not allowed in this context.

    You might need to install other software to open this address.

If it's important, I use Linux.

Thanks.

Edited by anna2358
Link to comment
Share on other sites

I'm not sure if the method to fix this in Linux is different, but hopefully this helps: https://support.mozilla.org/en-US/kb/applications-panel-set-how-firefox-handles-files?redirectlocale=en-US&as=u&redirectslug=Options+window+-+Applications+panel&utm_source=inproduct

I have secondlife content type set to "Always ask", which lets me choose which viewer to use to open a SLURL.

RJRgmkbsSEqKXEgFVuTS_w.png

 

8HAtdqRGQg2hIFOxS5-2dA.png

 

Edited by Whirly Fizzle
Added more details.
  • Thanks 1
Link to comment
Share on other sites

2 hours ago, Whirly Fizzle said:

I'm not sure if the method to fix this in Linux is different, but hopefully this helps: https://support.mozilla.org/en-US/kb/applications-panel-set-how-firefox-handles-files?redirectlocale=en-US&as=u&redirectslug=Options+window+-+Applications+panel&utm_source=inproduct

I have secondlife content type set to "Always ask", which lets me choose which viewer to use to open a SLURL.

 

 

Thanks, but it may be a Linux thing, there is no secondlife in the applications list. I ran, as root, the script in etc/register.secondlifeprotocol.sh, in the Firestorm installed files, but this doesn't seem to install the needed protocol - looking at the script it doesn't mention firefox or any browser, just Gnome and KDE (desktops) which I don't use.

I'll just have to keep on with the cut and paste. 

Screenshot from 2017-09-04 21-04-35.png

Link to comment
Share on other sites

OK, I have found out how to do it.  Thanks to a thought which occurred as a result of Whirly Fizzle's suggestion.

It's complicated, but I document it here, just in case there is another fool running Linux who wants it to work.

1) Find the file  handlers.json in your profile.  Mine was in my home folder in .mozilla/firefox/handlers.json.

2) Open it in a text editor (Scary Movie: this can seriously bork your copy of Firefox.) and carefully add in the secondlife protocol with:

"secondlife":{"action":0,"ask":true},

3) close and save the file.

4) close firefox and reopen it.  Now go to the Preferrence->Applications, and you will find a secondlife protocol has been added.

5) edit the action as desired -you must have at least one action so choose: Use other, and then fill in the full path to firestorm or your viewer of choice.

5a) repeat the above for as many viewers as you use, then finally set the action either to the viewer you want, or 'Always ask'.

6) close and restart firefox again, and now you can use the secondlife maps, and the links work!

My full handlers.json is here:

{"defaultHandlersVersion":{"en-GB":4},"mimeTypes":{"application/x-tar":{"action":2,"ask":true,"extensions":["tar"]},"application/pdf":{"action":3,"extensions":["pdf"]},"application/x-debian-package":{"action":0,"ask":true,"extensions":["deb","udeb"]},"video/mp4":{"action":0,"ask":true,"extensions":["mp4"]},"application/zip":{"action":0,"ask":true,"extensions":["zip"]},"application/vnd.ms-excel":{"action":0,"ask":true,"extensions":["xls","xlb","xlt"]},"text/x-python":{"action":0,"ask":true,"extensions":["py"]},"application/x-xz":{"action":0,"ask":true,"extensions":["xz"]},"image/jpeg":{"action":0,"extensions":["jpeg","jpg","jpe"]},"image/png":{"action":0,"extensions":["png"]},"application/x-gzip":{"action":0,"ask":true},"secondlife":{"action":0,"ask":true},"text/comma-separated-values":{"action":0,"ask":true},"text/x-sql":{"action":0,"ask":true},"application/x-bzip2":{"action":0,"ask":true},"application/x-iso9660-image":{"action":0,"ask":true,"extensions":["iso"]},"application/epub+zip":{"action":0,"ask":true},"application/x-mobipocket-ebook":{"action":0,"ask":true},"application/vnd.palm":{"action":0,"ask":true},"audio/mpeg":{"action":0,"ask":true,"extensions":["mp3","mpga","mpega","mp2","m4a"]},"audio/x-wav":{"action":0,"ask":true,"extensions":["wav"]}},"schemes":{"mailto":{"action":4,"handlers":[null,{"name":"Gmail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"},{"name":"Yahoo! Mail","uriTemplate":"http://compose.mail.yahoo.com/?To=%s"},{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"}]},"irc":{"action":4,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"ircs":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"webcal":{"action":2,"ask":true,"handlers":[null,{"name":"30 Boxes","uriTemplate":"http://30boxes.com/external/widget?refer=ff&url=%s"},{"name":"30 Boxes","uriTemplate":"https://30boxes.com/external/widget?refer=ff&url=%s"}]},"apt":{"action":2,"handlers":[{"name":"apturl-gtk","path":"/usr/bin/apturl-gtk"}]},"secondlife":{"action":2,"handlers":[{"name":"firestorm","path":"/opt/firestorm-5.0.7.52912/firestorm"}]}}}

 

Edited by anna2358
improved (5) and added (5a)
  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2439 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...