Skip to content

linux: Set window class in AppImage desktop entry - #656

Open
Graf17 wants to merge 1 commit into
CrealityOfficial:masterfrom
Graf17:fix-appimage-window-class
Open

Graf17 wants to merge 1 commit into
CrealityOfficial:masterfrom
Graf17:fix-appimage-window-class

Conversation

@Graf17

@Graf17 Graf17 commented Nov 8, 2026

Copy link
Copy Markdown

Summary

  • Add StartupWMClass=Creality to the desktop entry generated for the AppImage.
  • Allow Cinnamon to associate the running window with its launcher, so the launcher icon and pinning work correctly.

Background

On Linux Mint Cinnamon (X11), CrealityPrint 7.3.0.6149 reports WM_CLASS = "CrealityPrint", "Creality". The AppImage-generated desktop entry has no StartupWMClass, and the window does not provide _NET_WM_ICON. Adding StartupWMClass=Creality to the locally integrated desktop entry associates the window with the launcher and its icon.

Testing

  • sh -n on the modified build script template.
  • desktop-file-validate on the generated desktop entry with @SLIC3R_APP_NAME@ substituted.
  • Confirmed the corresponding local launcher is pinned and Cinnamon identifies the running window with that launcher; GTK resolves its icon.
  • A new AppImage was not built; other desktop environments and Wayland were not tested.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant