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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1732482

Title:
  [snap] doesn't properly save desktop files for "create shortcuts"
  action

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1732482/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to