Skip to content
New issue

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

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

Already on GitHub? # to your account

Icon not being set on Ubuntu via ebiten.SetWindowIcon() #3202

Open
1 of 11 tasks
radeeyate opened this issue Feb 26, 2025 · 8 comments
Open
1 of 11 tasks

Icon not being set on Ubuntu via ebiten.SetWindowIcon() #3202

radeeyate opened this issue Feb 26, 2025 · 8 comments

Comments

@radeeyate
Copy link

radeeyate commented Feb 26, 2025

Ebitengine Version

v2.8.6

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

1.23.4

What steps will reproduce the problem?

Add the following code to generate an icon and set it:

icon := ebiten.NewImage(32, 32)
icon.Fill(color.RGBA{0x33, 0x33, 0x55, 0xff})
ebiten.SetWindowIcon([]image.Image{icon})

What is the expected result?

The application icon to be set.

What happens instead?

The application icon just seems to stay as the default icon on GNOME:
Image

Anything else you feel useful to add?

I'm not sure if this is just specific to Ubuntu or whether it would affect other distros as well. I'm aware that I should in reality be setting the icon with a .desktop file for the game - it just seems like it should be working as it does on Windows as I presume.

@hajimehoshi
Copy link
Owner

Did you call ebiten.RunGame?

@radeeyate
Copy link
Author

Yes - it seems to have troubles either way.

@hajimehoshi
Copy link
Owner

Could you try

  1. Run go run github.com/hajimehoshi/ebiten/v2/windowsize
  2. Press 'I' some times to see icon changes

?

@radeeyate
Copy link
Author

Icon changes don't seem to apply using that either.

Screencast.from.2025-02-26.19-10-14.mp4

@hajimehoshi
Copy link
Owner

What desktop environment are you using?

@radeeyate
Copy link
Author

GNOME 46 (on Wayland) on Ubuntu 24.04

@hajimehoshi
Copy link
Owner

Thanks, I'll take a look later

@hajimehoshi hajimehoshi added this to the v2.9.0 milestone Feb 27, 2025
@hajimehoshi
Copy link
Owner

Wayland

I'm afraid Wayland is not supported well so far.

@hajimehoshi hajimehoshi modified the milestones: v2.9.0, v2.10.0 Feb 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants