Snap fails to launch — missing desktop-init.sh (and other desktop-launch wrapper scripts) in revision 150
Hi fellow humans, I'm pasting this diagnosis from Claude:
Environment:
- notesnook snap, version 3.4.5, revision 150, channel latest/stable
- Ubuntu GNOME 24.04
Steps to reproduce:
- Install notesnook from the Snap Store (or
snap install notesnook) - Launch via app grid, dock, or terminal (
notesnook)
Expected: App launches normally
Actual: Immediate failure with no window opening. Terminal output:
/snap/notesnook/150/command.sh: line 2: /snap/notesnook/150/desktop-init.sh: No such file or directoryRoot cause: command.sh in the snap requires three desktop-launch wrapper scripts:
exec "$SNAP/desktop-init.sh" "$SNAP/desktop-common.sh" "$SNAP/desktop-gnome-specific.sh" "$SNAP/notesnook" '--no-sandbox' "$@"None of these three files exist in /snap/notesnook/150/ (confirmed via ls -la). This looks like the snap's build recipe references the standard snapcraft desktop-launch/desktop-gtk3 extension scripts, but they weren't actually bundled into this build.
Already ruled out: Snap is on the latest available revision (snap refresh returns "no updates available"), so this isn't a stale cache issue.
Secondary issue: The snap's desktop file also has a malformed action, causing errors in GNOME Software/Snap Store:
DBusFailedException: org.freedesktop.DBus.Error.Failed: desktop file "/var/lib/snapd/desktop/applications/notesnook_notesnook.desktop" contains unknown action "new-note"Source: streetwriters/notesnook