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 Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1732482

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

Status in chromium-browser package in Ubuntu:
  Confirmed

Bug description:
  For chrome apps, the create shortcuts action should create desktop
  files but it doesn't.  I suspect it has something to do with paths.

  
  
  tracking:    candidate
  installed:   62.0.3202.94 (123) 246MB -

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to