Comment 9 for bug 1732482

Revision history for this message
Mark Stosberg (markstos) wrote :

I did get a ".desktop" file to work by manually copying it from ~/Desktop to ~/.local/share/applications, on Ubuntu 18.04.

I experimented with making the Exec= paths that didn't include a hard-coded version. I tried "/snap/bin/chromium", "chrome", "chromium" and "/snap/chromium/821/usr/lib/chromium-browser/chrome".

Well, "chrome" just doesn't work because it's not a binary in $PATH. Both "chromium" and "/snap/bin/chromium" will cause new instances of the web app to launch every time. Only if I use the "/snap/chromium/821/usr/lib/chromium-browser/chrome" will the app work as expected: The first click on the icon in the Gnome dock will launch it and the second click will switch to it if it's running already.

I'm glad I got something to work today but it seems like a bug that this feature only works when hard-coded version is included in the path of .desktop files.