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

Icon issue #690

Open
nricciardi opened this issue May 13, 2023 · 9 comments
Open

Icon issue #690

nricciardi opened this issue May 13, 2023 · 9 comments
Labels

Comments

@nricciardi
Copy link

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 nricciardi added the bug label May 13, 2023
@thatfloflo
Copy link
Contributor

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

@nricciardi
Copy link
Author

nricciardi commented May 16, 2023

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.

@thatfloflo
Copy link
Contributor

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.

@rraammiinn
Copy link

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

@nricciardi
Copy link
Author

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

Can you share it with us?

@rraammiinn
Copy link

[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
Copy link

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

@rraammiinn
Copy link

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

@rraammiinn
Copy link

is it possible to make it frameless ?

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

No branches or pull requests

3 participants