emilk/egui

App icon not showing up on KDE endeavor OS (Arch based) distro.

CodeCanna opened this issue · 2 comments

Describe the bug
The app logo should appear in the app drawer when the application opens.

To Reproduce
Steps to reproduce the behavior:

  1. Run this application with cargo run on a KDE based system
  2. You should see the app logo in the bottom menu bar, but its not showing up for me

Expected behavior
The app logo should appear in the app drawer/menubar

Screenshots
sp_screenshot

Desktop (please complete the following information):

  • OS: EndeavorOS
  • Browser N/A
  • Version Latest

Additional context
This works on Linux Mint, Windows, and FreeBSD, the logo shows up on all of these.

The code for loading the logo

fn load_icon(path: &str) -> egui::IconData {
  let (icon_rgba, icon_width, icon_height) = {
      let image = image::open(path)
          .expect("Failed to open icon path")
          .into_rgba8();
      let (width, height) = image.dimensions();
      let rgba = image.into_raw();
      (rgba, width, height)
  };

  egui::IconData {
      rgba: icon_rgba,
      width: icon_width,
      height: icon_height,
  }
}
smoe commented

Likely related to #3992 ?

Likely related to #3992 ?

Yes it is indeed, I confirmed by logging into an X11 session and testing my program, and the Icon is visible. It does seem to be a Weyland problem. Closing since this is a known problem.