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

Missing icon in certin context #271

Open
FredericGuilbault opened this issue Feb 7, 2021 · 1 comment
Open

Missing icon in certin context #271

FredericGuilbault opened this issue Feb 7, 2021 · 1 comment

Comments

@FredericGuilbault
Copy link

FredericGuilbault commented Feb 7, 2021

Hi,

I'm porting lysmarine to awesomewm DE, and it use a software called rofi as menu.

In rofi, the icon specified by xygrib.desktop does not show. But if I remove the file extension for the icon. It fixes the problem :

sudo sed -i "s/xygrib.png/xygrib/g" /usr/share/applications/xygrib.desktop

I did the same on my Linux mint 20 and removing the file extension did not break it.

Should it be removed ?

@FredericGuilbault
Copy link
Author

FredericGuilbault commented Feb 7, 2021

https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

It's not explicit, but from reading those two specifications, The way I get it. it should be a full path to the file, or it's an icon name and not a file name. Then it's passed down to the theme manager.

https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

There is an interesting part where it specifies to put the icons in the hicolor theme.

So, you're an application author, and want to install application icons so that they work in the KDE and Gnome menus. Minimally you should install a 48x48 icon in the hicolor theme. This means installing a PNG file in $prefix/share/icons/hicolor/48x48/apps. Optionally you can install icons in different sizes. For example, installing a svg icon in $prefix/share/icons/hicolor/scalable/apps means most desktops will have one icon that works for all sizes. You might even want to install icons with a look that matches other well known themes so your application will fit in with some specific desktop environment.

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

1 participant