Hi. I am using the [Deprecated] Desktop App support - Qt5 page to build an app in my job, automaton-builder. All is working great, except for using the .desktop file to start the app
In my snapcraft.yaml file I use
apps:
automaton-builder:
plugs: [home,x11, unity7, gsettings, network, desktop, desktop-legacy]
command: bin/desktop-launch automatonBuilder
environment:
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
QT_QPA_PLATFORMTHEME: gtk3
And the app starts ok. But in the desktop file, this doesn’t work:
[Desktop Entry]
Version=2.45
Type=Application
Name=AutomatonBuilder
GenericName=AutomatonBuilder
Exec=${SNAP}/bin/desktop-launch $SNAP/usr/bin/automatonBuilder
TryExec=automatonBuilder
MimeType=applications/khd
Icon=${SNAP}/meta/gui/automaton-builder.png
Terminal=false
Path=/usr/bin/
Categories=Utility;
StartupNotify=true
It always says “Desktop file didn’t specified Exec field”
I am missing something? Maybe the page (for qt5 apps) should have an example of a .desktop file