darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Even without specifying %s, Open With seems to pass URL to application in some way #268

Open antistress opened 4 years ago

antistress commented 4 years ago

Hi,

On GNU/Linux there is a new way to distribute and run application named Flatpak. To run a Flatpak application with the command line, you have to key : $ flatpak run applicationID For instance, to run VLC : $ flatpak run org.videolan.VLC

What I found strange at first sight is that "Open With" could open some Flatpak applications whereas it couldn't open some other ones.

So I made some investigations.

I've made a few basic tests (without trying to pass current URL, just launching some Flatpak apps with "Open With") :

Note that for instance running flatpak run org.audacityteam.Audacity from "Open With" does launch Audacity but Audacity complains to not be able to find the URL file, which is surprising since the command doesn't specify %s.

Running flatpak run com.github.unrud.VideoDownloader --url in "Open With" does open current URL in VideoDownloader without specifying %s

I don't know if it's a feature or not, if it can be a problem or not, but I report it just in case.

Thanks for this great extension !