Files
craft-anything/packaging/linux
ilijachrchev 5e67fd773f Disable StartupNotify in the Linux .desktop file (#1929)
On GNOME Wayland the desktop shell passes an activation token
(XDG_ACTIVATION_TOKEN) when StartupNotify is true. The app has no code
to consume or clear this token, and the window library (winit/eframe)
does not handle it either, so GNOME's startup-notification timeout
kills the process 5-8 seconds after an icon launch. Terminal launches
and gtk-launch, which do not set the token, work fine.

Setting StartupNotify=false stops GNOME from passing the token and
from applying its startup timeout. StartupWMClass is kept: GNOME uses
it independently for window grouping.

Trade-off: with StartupNotify=false, GNOME no longer shows the
spinning cursor ("starting" feedback) while the app opens.

A follow-up roadmap line tracks investigating the root cause (the app
not consuming the activation token) and re-enabling launch feedback
once that is fixed.

What changed:
- packaging/linux/ai.storyteller.craft-anything.desktop:
  StartupNotify=true -> StartupNotify=false
- docs/ROADMAP.md: ticked line under R5.1, plus an open line for the
  follow-up investigation

Verified:
- The reporter confirmed that StartupNotify=false is a working
  workaround
- No Rust code references XDG_ACTIVATION_TOKEN or DESKTOP_STARTUP_ID

Not verified:
- Not tested with the Flatpak installed from this change on a GNOME
  Wayland desktop (no GNOME environment available here)
- Not tested on the .deb or AppImage, which ship the same file

Closes #1929
2026-11-20 10:40:51 +00:00
..
2026-10-31 10:52:14 -04:00
2026-10-31 10:52:14 -04:00