Icons: load an absolute Icon= path that has no extension
CI / test (push) Failing after 31m49s

AppImage managers write icons as extensionless files, so those apps got the
generic icon. Any absolute path is now tried, and the loaders tell PNG and SVG
apart from the contents.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 23:01:20 -08:00
1 parent 27252a97ab
commit 44688453d7
5 files changed
+18 -15

No files matched your search

+1
View File
@@ -62,6 +62,7 @@ test "themes without an index.theme use the hicolor layout, then pixmaps" {
assert_eq(icon_candidates("foo.png", false, [("hicolor", None)], ["/b"], [])[0], "/b/hicolor/48x48/apps/foo.png")
assert_eq(icon_candidates("/opt/app/icon.png", false, [], ["/b"], []), ["/opt/app/icon.png"])
assert_eq(icon_candidates("/opt/app/icon.svg", false, [], ["/b"], []), [])
assert_eq(icon_candidates("/opt/app/.icons/app", false, [], ["/b"], []), ["/opt/app/.icons/app"])
assert_eq(icon_candidates("", true, [], ["/b"], []), [])
}