Record: single-window handler and its icon

Outcome

The handler is now a single window with one large output area, it has its own AppImage icon, and the AppImage MIME types use that same icon.

Is There an Icon for the AppImage Standard?

There is no icon defined by the AppImage file-format specification. The specification defines magic bytes, a payload, and an AppDir; it says nothing about an icon for the file type.

Three related icons do exist:

Decision: the handler now ships an original mark of its own, sources/tools/icons/appimage-handler.svg. It is a self-contained package with a run control, so it reads as “an AppImage you can run”, and it avoids reusing the AppImage project’s logo.

The Icon Is Wired In Three Places

Place What is written
The handler launcher Icon=appimage-handler in appimage-handler.desktop
The user icon theme $XDG_DATA_HOME/icons/hicolor/scalable/apps/appimage-handler.svg, mode 644
The AppImage MIME types every <generic-icon name="application-x-executable"/> in $XDG_DATA_HOME/mime/packages/appimage.xml becomes appimage-handler, so file managers show the AppImage icon

The MIME rewrite is reversible: the original file is copied to the tool’s backup/ directory before the edit and restored by handler uninstall, which also removes the installed icon. Re-registering our own handler no longer overwrites the real previous defaults it recorded; the manifest keeps the original appimagelauncher.desktop values.

The Single Window

Centring

The window is centred where the platform allows it. center_window computes the centre of the monitor work area and applies it with xdotool on X11. Wayland does not let a client choose its position, so there the call is a no-op and the compositor places the window; GNOME centres a new toplevel window by default.

Verification

Verified 2026-09-22 with make test; all fifteen test scripts passed.

Commits