probonopd / go-appimage

Go implementation of AppImage tools
MIT License
818 stars 71 forks source link

appimaged desktop files: Arguments are not passed correctly #192

Closed lawl closed 2 years ago

lawl commented 2 years ago

Steps to reproduce:

1) Download an appimage 2) let appimaged generate a desktop file 3) cause arguments to be passed to the application: e.g. download https://freetubeapp.io/ which registers MimeType=x-scheme-handler/freetube to handle freetube:// urls. 4) Open a freetube URL, e.g. freetube://https://www.youtube.com/watch?v=dQw4w9WgXcQ with xdg-open

Expected behaviour: FreeTube opens and starts playing rickroll.

Actual behavior: FreeTube opens and doesn't play anything.

The generated desktop file contains this exec line:

Exec=/home/user/Applications/appimaged-650-x86_64.AppImage wrap "/home/user/Applications/freetube.AppImage"

but it should really be

Exec=/home/user/Applications/appimaged-650-x86_64.AppImage wrap "/home/user/Applications/freetube.AppImage" %U

so that the arguments are passed correctly.

pegvin commented 2 years ago

I installed github desktop version 2.9.4 using my tool bread and for some reason it didn't register github desktop's URL protocols, like when going in that url with that protocol even after selecting the application to launch it didn't work, instead i had to add that app to default applications