Linux: StartupWMClass is the window's app id (#1087)

* Linux: StartupWMClass is the window's app id

The desktop entry said StartupWMClass=pdfcraft, but the window carries the
app id ai.storyteller.pdfcraft (APP_ID) on Wayland and under X11 alike, so
nothing that matches a window to its launcher by that key ever matched it:
on X11 the launch's startup notification can't end when the window maps.
VectorCraft, GridCraft and WordCraft already use the app id.

A test reads the entry and compares it with APP_ID.

* Contributors: add atoslins (Atos Lins)

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
This commit is contained in:
Atos Lins
2026-10-11 12:02:18 -04:00
committed by GitHub
co-authored by Brandon Thomas
parent 2fbce7028c
commit ea1df6e1cb
3 changed files with 15 additions and 1 deletions
@@ -8,7 +8,7 @@ TryExec=pdfcraft
Icon=ai.storyteller.pdfcraft
Terminal=false
StartupNotify=true
StartupWMClass=pdfcraft
StartupWMClass=ai.storyteller.pdfcraft
Categories=Office;Viewer;
Keywords=pdf;viewer;editor;annotate;sign;forms;merge;split;
MimeType=application/pdf;