Files
DarkRoom/packaging/paris.tourolle.darkroom.desktop
dtourolleandClaude Opus 5 e25f0ad2c6 Let the launcher find an icon for the window
The icon was already embedded and had been all along: `app.slint` sets it and
`build.rs` compiles it into the binary with `EmbedFiles`. That is not what a
Wayland compositor looks at. It ignores a client-set icon entirely, matches
the surface's `app_id` against installed `.desktop` files, and takes the icon
from the one whose basename agrees. Nothing set an app id and no desktop entry
existed, so GNOME had nothing to resolve and drew the placeholder.

Both halves are needed and neither substitutes for the other: the embedded
icon is what X11 and the window itself use, and the desktop entry is what the
overview, the dash and alt-tab use.

The app id, the `.desktop` basename and the installed icon's filename are one
string in three places — `paris.tourolle.darkroom`, the same reverse-DNS name
the Android manifest already uses, because it is one application. Change one
without the others and the icon disappears again with nothing logged, so each
file says so where the string appears.

The PKGBUILD builds from the checkout rather than a release tarball, so
`makepkg -si` installs what is being worked on. Install verified by inspection
of the built package: binary, desktop entry, and the icon under
hicolor/256x256 by the name the entry asks for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-23 10:26:04 +02:00

19 lines
928 B
Desktop File

[Desktop Entry]
Type=Application
Name=DarkRoom
GenericName=Photo Editor
Comment=Non-destructive RAW photo library and editor
# The basename of this file is the contract: a Wayland compositor finds it by
# matching the surface's app_id, which `dr_ui::run` sets to the same string.
# Rename one without the other and the icon silently disappears.
Exec=darkroom-desktop %F
Icon=paris.tourolle.darkroom
Terminal=false
Categories=Graphics;Photography;RasterGraphics;2DGraphics;
Keywords=RAW;photo;photography;develop;darkroom;library;
# X11 falls back to matching the WM_CLASS instead of the app_id; winit sets it
# from the same string, so naming it here covers both display servers.
StartupWMClass=paris.tourolle.darkroom
StartupNotify=true
MimeType=image/x-canon-cr2;image/x-canon-cr3;image/x-nikon-nef;image/x-sony-arw;image/x-adobe-dng;image/x-fuji-raf;image/x-olympus-orf;image/x-panasonic-rw2;image/jpeg;image/png;image/tiff;