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:
1 parent
27252a97ab
commit
44688453d7
5 files changed
+18
-15
No files matched your search
@@ -21,10 +21,10 @@ fn frame_rgb(f : @renderer.Pixmap, x : Int, y : Int) -> (Int, Int, Int) {
|
||||
}
|
||||
|
||||
///| A compositor with the six fake apps of `desk_comp`, where app0's .desktop file says
|
||||
/// Icon=<an absolute path to a red PNG>.
|
||||
/// Icon=<an absolute path to a red PNG without an extension, as AppImage managers write it>.
|
||||
fn icon_comp(tag : String) -> @host.ChandraCompositor {
|
||||
let comp = desk_comp(tag)
|
||||
let png = "/tmp/chandra-icon-" + tag + "-" + @sys.getpid().to_string() + ".png"
|
||||
let png = "/tmp/chandra-icon-" + tag + "-" + @sys.getpid().to_string()
|
||||
write_icon_png(png, 230, 20, 20)
|
||||
comp.shell.exec.set("app0", "app0")
|
||||
comp.shell.icon_names.set("app0", png)
|
||||
|
||||
Reference in new issue
Block a user