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

Allow absolute path for Icon key in .desktop entries #178

Open
d8a-base opened this issue Jul 20, 2022 · 2 comments
Open

Allow absolute path for Icon key in .desktop entries #178

d8a-base opened this issue Jul 20, 2022 · 2 comments

Comments

@d8a-base
Copy link

According to the Desktop Entry Specification: If the name is an absolute path, the given file will be used.

This seems to currently not work with jgmenu.

@johanmalm
Copy link
Collaborator

Are you sure?
I just created a ~/.local/share/applications/foo.desktop with Icon=/some/absolute/path
I just tried it with jgmenu_run apps to check that the third field contains the absolute path? It does.
I then found some random icon and set Icon= to that and ran jgmenu_run apps | jgmenu --simple. It shows it icons I specified.
Can you provide more details?
Maybe post your desktop file
Can you post ls -la /path/to/your/icon/foo.png

@d8a-base
Copy link
Author

Huh. You're right. I guess I jumped to conclusions. There's something else going on.

jgmenu_run apps indeed does show the absolute path.

In hindsight I think I left out some important information. Every .desktop entry that doesn't show its icon (except for one) was created by the Heroic Games Launcher.

Here's an example:

[Desktop Entry]
Name=DEMON'S TILT
Exec=xdg-open heroic://launch/b8b37813c5634dbdac61d88ff411135c
Terminal=false
Type=Application
MimeType=x-scheme-handler/heroic;
Icon=/home/d8a/.config/heroic/icons/b8b37813c5634dbdac61d88ff411135c.jpg
Categories=Game;

I don't want to jump to conclusions again but my current guess is that the file format is the culprit here... they're all a .jpg

The one that wasn't created by the Heroic Games Launcher points to an .ico file.

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

No branches or pull requests

2 participants