Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor does not use Godot icon on Wayland (uses default Wayland icon instead) #87747

Open
Tracked by #88346
Calinou opened this issue Jan 30, 2024 · 2 comments
Open
Tracked by #88346

Comments

@Calinou
Copy link
Member

Calinou commented Jan 30, 2024

Tested versions

System information

Godot v4.3.dev (cae7599) - Fedora Linux 39 (KDE Plasma) - Wayland - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (nvidia; 545.29.06) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)

Issue description

The editor doesn't use Godot icon on Wayland; it uses the default Wayland icon instead. This is printed when the editor starts:

WARNING: Icon not supported by this display server.
     at: set_icon (servers/display_server.cpp:587)

This isn't printed when running the project directly with the --path command line argument.

See the editor icon in top-left corner (default Wayland icon), project icon in bottom-right corner:

image

Steps to reproduce

Use a Wayland session, enable the Prefer Wayland editor setting then restart the editor.

Minimal reproduction project (MRP)

N/A

@Riteo
Copy link
Contributor

Riteo commented Jan 31, 2024

This is, somewhat surprisingly, intended behavior.

The "Wayland" way of setting an icon is to actually let the DE do it for you, by setting a proper .desktop for the window's app id.

So this is actually more of a packaging issue than a backend one.

Edit: BTW, the icon still appears when running with path as it's running with XWayland. To run projecrs with Wayland, either pass --display-driver wayland or set the relative project setting.

@mak448a
Copy link

mak448a commented Sep 10, 2024

Seems like you can use the xdg-toplevel-icon protocol to set the icon without a .desktop file. I'm not a wayland developer, so I don't know much more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants