fix: make the application icon work everywhere #55
Loading…
Reference in a new issue
No description provided.
Delete branch "mysticalsoap/fix/app-icons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The code half of #11 and all of #51. Three stacked misses:
qt5-svgis only an optdepend ofpython-pyqt5, and without Qt's SVG icon enginefromTheme("aqomui")cannot load our scalable-only hicolor icon — null window icon, null tray icon (the journal'sQSystemTrayIcon::setVisible: No Icon set).aqomui-gui) never matchedaqomui.desktopeither.QSystemTrayIconholding a null icon is invisible on most desktops, butisSystemTrayAvailable()still answers yes — so the quit dialog offered Minimize and hid the window into an invisible tray. The process kept running with no way back; it looked closed.Fix
One commit each:
qt5-svgbecomes a hard dependency (with a comment on why);main()callssetDesktopFileName("aqomui")for the Wayland app_id match; the desktop file gainsStartupWMClass = aqomui-guifor X11.systemtray()now treats an unloadable tray icon as "no tray" — window shown normally, and the quit dialog's Minimize option is gated on the tray actually being usable, so the window can never be hidden into nothing.Verification
compileallclean; CI runs pytest/rufflibQt5Svg.so.5import fails, and only scalable SVGs are installed for the icon) but the end-to-end result — colored tray icon, correct alt-tab icon, Minimize behaving — needs the rebuilt package installed in a live session to confirm; worth doing as part of the 0.9.0 passisSystemTrayAvailable()is false, just with a wider triggerCloses #11
Closes #51
Assisted-by: claude-fable-5