Flameshot: Flameshot snap package is missing Exec command

Created on 7 May 2019  路  5Comments  路  Source: flameshot-org/flameshot

Flameshot version
v0.6.0+git37.8887b4e

Describe the bug
Flameshot snap desktop launcher is missing Exec command and will not start from launcher:
image

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

Bug High Priority

Most helpful comment

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

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylewill picture kylewill  路  4Comments

ronjouch picture ronjouch  路  3Comments

borgmanJeremy picture borgmanJeremy  路  3Comments

makz27 picture makz27  路  4Comments

dajare picture dajare  路  4Comments