Hello, for the desktop file (placed under the gui
folder) below:
[Desktop Entry]
Type=Application
Name=Nixwriter (Snap)
Comment=Create bootable Linux images with dd and from a GTK user interface
Terminal=false
Icon=${SNAP}/meta/gui/nixwriter.png
Exec=pkexec nixwriter
Category=Utility;
snapcraft generates the following .desktop file in /var/lib/snapd/desktop/applications/
:
[Desktop Entry]
X-SnapInstanceName=nixwriter
Type=Application
Name=Nixwriter (Snap)
Comment=Create bootable Linux images with dd and from a GTK user interface
Terminal=false
Icon=/snap/nixwriter/x1/meta/gui/nixwriter.png
Which is missing the Exec
field. When I try launchig the app I get notified that the Exec field missing. What should I do about this?
My yaml file:
name: nixwriter
base: core18
version: "2.0.0"
summary: Bootable Linux image writer
description: |
Create bootable Linux images into flash drives from a simple user interface.
grade: devel
confinement: devmode
parts:
nixwriter:
source: "."
plugin: rust
build-packages:
- libgtk-3-dev
apps:
nixwriter:
command: bin/nixwriter
extensions: [gnome-3-28]
plugs:
- desktop
- desktop-legacy
- x11
- wayland
- home
- udisks2
- block-devices```