linuxmint / webapp-manager

GNU General Public License v3.0
705 stars 93 forks source link

Open link in app (like Android does) #138

Open lucasgabmoreno opened 3 years ago

lucasgabmoreno commented 3 years ago

It would be awesome if some links could be opened with this webapps.

For example, I've created Youtube app, with www.youtube.com site.

If I could set this regex as an option: youtube.com|youtu.be

Every link with "youtube.com" or "youtu.be" could be opened with this App instead of default browser (like Android does)


It would be very useful for web apps like:


It's not a fix, it's and enhancement

ghost commented 3 years ago

hooking xdg-open https://<base_URL>/ to open the webapp would be a reasonable solution

lucasgabmoreno commented 2 years ago

hooking xdg-open https://<base_URL>/ to open the webapp would be a reasonable solution

Thanks! But I can't find how to hook.

Supose I've youtube.desktop app, and I want to open youtube.com and youtu.be URLs with this app. How can I configure xdg-open? And how can I set it as default?

I need a line like: xdg-open *youtube.com* youtube.desktop

Thanks!

ghost commented 2 years ago

this seems like the tool exactly for that: https://github.com/isamert/jaro