Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Icon issue

Open nricciardi opened this issue 2 years ago • 9 comments

I'm having problems displaying the icon set in the front-end, when I launch the app it is displayed in a common Chrome window.

nricciardi avatar May 13 '23 14:05 nricciardi

What OS is this, and what file format are your icons in?

thatfloflo avatar May 16 '23 16:05 thatfloflo

What OS is this, and what file format are your icons in?

Linux Mint, the format is ico. What is the right procedure to set icon? Maybe I'm wrong.

nricciardi avatar May 16 '23 17:05 nricciardi

Chrome / Chromium on Linux does not support showing a web-app's favicon in the launcher as far as I know, so that's one limitation Eel can't do much about. You may be able to get around this by creating a custom .desktop file for a launcher entry and making e.g. Gnome or Cinnamon use that (whatever your shell of choice is). Chrome will still launch as a separate window with the Chrome/Chromium icon showing, unless your grab and link the window manager's ID for the window in the launcher, which is complicated and I cannot help with much.

For the Chrome/Chromium window itself (depending on whether the window manager / the window decorations it draws support this) you might have better luck getting your favicon displayed if you use a PNG instead of an ICO file.

Sorry I can't be of much more help, the issue is more to do with Chrome/Chromium than Eel, and they won't do much about it I'd imagine as they're not officially supporting their app mode anymore.

thatfloflo avatar May 16 '23 18:05 thatfloflo

I have created .desktop file for my program but chromium icon appears when it launches .

rraammiinn avatar Jun 05 '23 13:06 rraammiinn

I have created .desktop file for my program but chromium icon appears when it launches .

Can you share it with us?

nricciardi avatar Jun 05 '23 13:06 nricciardi

[Desktop Entry] Type=Application Exec=/home/ramin/.pinit/venv/bin/python /home/ramin/.pinit/main.py light
Icon=/home/ramin/.pinit/pinit.svg Categories=Utility Name=pinit Terminal=false

rraammiinn avatar Jun 08 '23 07:06 rraammiinn

Screenshot from 2023-06-08 10-26-02

rraammiinn avatar Jun 08 '23 07:06 rraammiinn

it shows chromium icon . I tried png icon too but it makes no difference .

rraammiinn avatar Jun 08 '23 07:06 rraammiinn

is it possible to make it frameless ?

rraammiinn avatar Jun 08 '23 07:06 rraammiinn