Flameshot version
v0.6.0+git37.8887b4e
Describe the bug
Flameshot snap desktop launcher is missing Exec command and will not start from launcher:

To Reproduce
1) Install flameshot via CLI snap install flameshot-app or Ubuntu Software
2) Search up flameshot via launcher and try launch it
3) Flameshot will not start and give error "Desktop file didn't specify Exec field"
Expected behavior
Flameshot should start
Workaround until package is updated
I fixed this by adding Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/flameshot-app_flameshot.desktop /snap/bin/flameshot-app.flameshot %U to the desktop launcher file located at /var/lib/snapd/desktop/applications/flameshot-app_flameshot.desktop
System Information
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
I can confirm this, and completed the file /var/lib/snapd/desktop/applications/flameshot-app_flameshot.desktop with Exec lines like shown below.
[Desktop Entry]
X-SnapInstanceName=flameshot-app
Name=Flameshot
Name[zh_CN]=鐏劙鎴浘
Exec=flameshot-app.flameshot
GenericName=Screenshot tool
GenericName[zh_CN]=灞忓箷鎴浘宸ュ叿
GenericName[pl]=Zrzuty ekranu
GenericName[fr]=Outil de capture d'茅cran
Comment=Powerful yet simple to use screenshot software.
Comment[zh_CN]=寮哄ぇ鍙堟槗鐢ㄧ殑灞忓箷鎴浘杞欢
Comment[pl]=Proste w u偶yciu narz臋dzie do zrzut贸w ekranu
Comment[fr]=Logiciel de capture d'茅cran puissant et simple d'utilisation.
Keywords=flameshot;screenshot;capture;shutter;
Keywords[zh_CN]=flameshot;screenshot;capture;shutter;鎴浘;灞忓箷;
Keywords[fr]=flameshot;capture d'茅cran;capter;shutter;
Icon=/snap/flameshot-app/188/meta/gui/flameshot.png
Terminal=false
Type=Application
Categories=Graphics;
StartupNotify=false
Actions=Configure;Capture;
[Desktop Action Configure]
Name=Configure
Name[zh_CN]=閰嶇疆
Name[pl]=Konfiguruj
Name[fr]=Configurer
Exec=flameshot-app.flameshot config
[Desktop Action Capture]
Name=Take screenshot
Name[zh_CN]=杩涜鎴浘
Name[pl]=Zrzut ekranu
Name[fr]=Prendre une capture d'茅cran
Exec=flameshot-app.flameshot gui
Still an issue. I used the above config by @grossherr, and finally got it working after being pretty confused.
@grossherr Do you want to submit a PR with that fix? If not I can manually do it, I just don't want to steal your credit :)
@borgmanJeremy No worries, go for it
@borgmanJeremy I think this was fixed via yesterday new snap pakaging on github actions.
Most helpful comment
I can confirm this, and completed the file
/var/lib/snapd/desktop/applications/flameshot-app_flameshot.desktopwithExeclines like shown below.