pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
406 stars 35 forks source link

No option to set windows icon #284

Closed wiiznokes closed 6 months ago

wiiznokes commented 6 months ago

I'm wondering why windows settings from Iced are not available ?

For example, on Linux, to show an app icon on the dock, it is possible to use the icon field of https://docs.rs/iced/latest/iced/window/struct.Settings.html with Iced. But there is no such option on libcosmic.

Drakulix commented 6 months ago

This is generally discouraged in modern toolkits. There exists no mechanism to send icon-data in wayland currently and even when running through X11 sending icon data has various issues (e.g. the desktop usually need multiple sizes or at best scalable icons also this doesn't allow for user-overrides, etc).

As such your application should rather provide a proper .desktop file to set it's icon.

mmstick commented 6 months ago

Yes, this property is not given because it has no effect on Linux. Applications get their icons from their desktop entry files.