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 is not displayed #1136

Closed
aljustiet opened this issue Nov 17, 2024 · 14 comments
Closed

Icon is not displayed #1136

aljustiet opened this issue Nov 17, 2024 · 14 comments

Comments

@aljustiet
Copy link

Are you using "AM" or "AppMan"?

AppMan

What GNU/Linux distribution are you using it on?

Arch/Hyprland

Please, describe the bug

Generated desktop files doesn't display icon. If I change the icon file to png variant it starts displaying again.

What are the steps/commands to perform?

Open app launcher e.g. rofi, and search for the app.

What is the expected behavior?

The icon to be displayed.

@Samueru-sama
Copy link
Contributor

Generated desktop files doesn't display icon. If I change the icon file to png variant it starts displaying again.

Open app launcher e.g. rofi, and search for the app.

Looks like a problem with rofi, specially with libgdk-pixbuf which is used for svg icons.

Do you have this problem if you use this appimage of rofi? appman -i rofi

@aljustiet
Copy link
Author

Generated desktop files doesn't display icon. If I change the icon file to png variant it starts displaying again.

Open app launcher e.g. rofi, and search for the app.

Looks like a problem with rofi, specially with libgdk-pixbuf which is used for svg icons.

Do you have this problem if you use this appimage of rofi? appman -i rofi

Does it support wayland?

@aljustiet
Copy link
Author

Fuzzel has the same behavior.

@aljustiet
Copy link
Author

1.mp4

@aljustiet
Copy link
Author

Generated desktop files doesn't display icon. If I change the icon file to png variant it starts displaying again.

Open app launcher e.g. rofi, and search for the app.

Looks like a problem with rofi, specially with libgdk-pixbuf which is used for svg icons.
Do you have this problem if you use this appimage of rofi? appman -i rofi

Does it support wayland?

Seems not.

@aljustiet
Copy link
Author

I use the rofi-wayland version.

@aljustiet
Copy link
Author

Adding png extension to icons fixes the issue.

@Samueru-sama
Copy link
Contributor

I use the rofi-wayland version.

You likely have this bug. Which rofi fixed but it seems the wayland forks haven't.

Adding png extension to icons fixes the issue.

because the issue happens when there isn't a dot in the path to the icon, it is a weird bug, if you change the directory where the icon is located to have a . like ~/.Applications it will also be fixed.

@Samueru-sama
Copy link
Contributor

Indeed it is the same bug, just installed rofi-wayland

image

And here is with the the rofi appimage:

image

Note that the stable releases of rofi also have the bug, you have to use rofi-git or the appimage that I build.

(Just in case that error about android-tools is because the file isn't an image, it is just a dummy icon lol).

@aljustiet
Copy link
Author

aljustiet commented Nov 17, 2024

I installed the rofi-lbonn-wayland-only-git package, and it fixed the issue too.

@ivan-hc ivan-hc pinned this issue Nov 17, 2024
@twnaing
Copy link

twnaing commented Nov 20, 2024

jgmenu also does not work with current icon file (without file extension).

Adding extension to the icon file (and add extension in generated desktop file) works in both rofi and jgmenu.

@Samueru-sama
Copy link
Contributor

jgmenu also does not work with current icon file (without file extension).

Adding extension to the icon file (and add extension in generated desktop file) works in both rofi and jgmenu.

Is it really the extension or that it expects the path to have a dot?

Try changing the icon dir to .icons and the path in the .desktop to also have .icons and see if it also displays the icon that way, without extension.

@twnaing
Copy link

twnaing commented Nov 20, 2024

Try changing the icon dir to .icons and the path in the .desktop to also have .icons and see if it also displays the icon that way, without extension.

For jgmenu

  • icons/app-name -> does not work
  • .icons/app-name -> does not work
  • icons/app-name.png -> works

@Samueru-sama
Copy link
Contributor

Try changing the icon dir to .icons and the path in the .desktop to also have .icons and see if it also displays the icon that way, without extension.

For jgmenu

* `icons/app-name` -> does not work

* `.icons/app-name` -> does not work

* `icons/app-name.png` -> works

Just tested it and indeed it needs the extension, this is a separate issue then.

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

3 participants