sonnyp / Junction

Application/browser chooser
https://flathub.org/apps/re.sonny.Junction
GNU General Public License v3.0
457 stars 29 forks source link

Domain Specific Applications Possible? #75

Open tinywombat765 opened 2 years ago

tinywombat765 commented 2 years ago

I would like Junction to provide FreeTube as an app to open YouTube urls and only YouTube urls. Would there be a way to get Junction to recognize FreeTube as such? Whether that be through something is Junction or in the system MIME database. Currently it registers itself as a handler of the MIME type x-scheme-handler/freetube, idk if that helps.

Thank you for your time.

sonnyp commented 2 years ago

https://github.com/sonnyp/Junction/issues/66 - I think it would be great but we need someone to take the lead here :)

sonnyp commented 2 years ago

We could also hardcode some well known special rules for popular things like jitsi and freetube.

if we encounter a youtube url and freetube is installed we offer it as an option in addition to browsers If we encounter a jitsi / 8x8 url and jitsi meet is installed we offer it as an option in addition to browsers

But to make it persistent we will need https://github.com/sonnyp/Junction/issues/5

mitchins commented 8 months ago

Jumping in here, I use Choosy when using mac and it allows a rule to open a specific url pattern in a specific brwoser: e.g. I'll open dev.azure.com in edge for work, otherwise use firefox.

Could we perhaps start with a simple YAML file that lists regex patterns and default application for that entry?

I might be able to have a crack at it, depending if there's something of a consensus on the approach.