简体   繁体   English

Snap to Snapcraft 发布错误 Exec,Type

[英]Snap to Snapcraft publication error Exec, Type

I am getting the followings errors when I try to publish the snap:尝试发布快照时出现以下错误:

Could not find 'Exec=' in desktop file lint-snap-v2_desktop_file (exec, name.desktop)
Could not find 'Type=Application' in desktop file lint-snap-v2_desktop_file (type, name.desktop)

But in the app.desktop the commands are specified:但是在 app.desktop 中指定了命令:

[Desktop Entry]
Version=1.2
Name=name
Comment=description
Exec=exec-name
Icon=${SNAP}/meta/gui/name.png
Terminal=false
Type=Application
Categories=Utility;Application;

I've got the same issue!我有同样的问题!

So I checked the desktop file again and figured out there were blank spaces on each begin of line.所以我再次检查了桌面文件,发现每一行的开头都有空格。 If you've got still the problem check for blank lines: .) After removing the spaces it worked fine.如果问题仍然存在,请检查空行:.) 删除空格后它工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM