Linux URI handling

The truth is all I want to hear. At least I got a response.

I know its hard work with a small team, I think I was just being grumpy when I made that post.

Keep up the good work!

1 Like

What is the syrinscape:// URI scheme used for? Registering a handler is pretty straightforward on Linux; I may be able to throw something together fairly quickly that end users can run themselves.

@joelh

Afaik there is no way to access the program except through their interface without their helper program they haven’t released did Linux.

Ah, so these URLs need to do something beyond launching Syrinscape with a particular set of command-line flags? Seriously, I have no idea what these links are meant to do.

The URLs are used to initiate playback or stop playback of specific sounds with Syrinscape. With URLs you have a couple of different options for how its handled. You can use a browser to open the URL, but doing that means that it will open a new tab everytime you launch a sound. The other option is to have a URI handler for your OS that points to the Syrinscape Player. When you have this in place, any time a syrinscape URL gets triggered or opened, it gets passed to the syrinscape player for handling and not to the browser.

The primary issue this thread is about is that there is no URI handler for MacOS or Linux at this time. So trying to use the URLs from with VTTs like Fantasy Grounds is more limited. For MacOS, one community member developed a small helper utility app that registers a URI handler and passes it off but this only works for Syrinscape Online, and not for the Fantasy or Sci-fi players.

Ah, I see. Thanks for explaining!

Here’s a program to do that. It currently only works with the Sci-Fi player (easy to change; see the top of the script), and I haven’t had too long to test it, but maybe it could give you something to work with until the Syrinscape guys can make an official one.

Debian / Ubuntu / etc: https://github.com/piquan/syrinscape-url-handler/releases/download/v0.0.1-debian/syrinscape-uri-handler_0.0.1-1_all.deb
Other Linuxes: https://github.com/piquan/syrinscape-url-handler/releases/download/v0.0.1/syrinscape-uri-handler-0.0.1.tar.gz

To be clear: this is not an official Syrinscape program. It’s just something I wrote to work with their program. If anything goes wrong, blame me, not them.

3 Likes

Oh, I misread the scheme: it should by syrinscape-particular-app://, not just syrinscape://. So please edit the .desktop file accordingly. If there’s interest, I’ll release a fixed version.

1 Like

I’ve fixed the bugs I mentioned last night. This now works with both Syrinscape Fantasy and Sci-Fi, and correctly registers the proper URLs.

Debian / Ubuntu / etc: https://github.com/piquan/syrinscape-url-handler/releases/download/v0.0.2-debian/syrinscape-uri-handler_0.0.2-1_all.deb
Other Linuxes: https://github.com/piquan/syrinscape-url-handler/releases/download/v0.0.2/syrinscape-uri-handler-0.0.2.tar.gz

This is not an official Syrinscape program. It’s just something I wrote to work with their program. If anything goes wrong, blame me, not them.

3 Likes

Thanks!
Looks like Syrinscape could add this to the Linux release in a few minutes.