Author Topic: Issue with icons [solved]  (Read 665 times)

0 Members and 1 Guest are viewing this topic.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Issue with icons [solved]
« on: 03. March 2016, 17:42:00 »
Hi!
I'm getting a multitude of weird issues when I try to generate new bspwm issues. Most of them are easy to track and results of my carelessness, but there is one that I do not completely understand yet.

I use menda-circle-icon-theme, and some individual symbolic adwaita icons in custom menus. I have checked that the right files are in place, but for some reason my menus don't have icons, and all apps use ugly default icons instead of following the theme. Gtkrc files are as they should. Lxappearance lists rightly installed icon themes, but shows only the default icons in the preview.

When I tried to launch the menu from command line, I got loads of this type of errors:
Code: [Select]
Couldn't recognize the image file format for file '/usr/share/icons/Adwaita/scalable/actions/system-run-symbolic.svg

This seems to indicate that I'm lackging some package that is necessary for displaying svg icons. Anybody got any idea what it might be?
« Last Edit: 10. March 2016, 02:20:19 by Chrysostomus »

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Issue with icons
« Reply #1 on: 03. March 2016, 18:04:43 »
Some WMs have compile options to enable SVG. Maybe check the bspwm documentation how to check this compile option for bspwm.
It could be also an issue with an incomplete icon set. You could try to find out which icons to add to some folders to make them being recognized. I had to do that on LXQt with Maia icons https://forum.manjaro.org/index.php?topic=29891.msg248003#msg248003
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #2 on: 03. March 2016, 18:47:28 »
I find these explanations unlikely because
1) I'm running the same version of bspwm on my main machine and it has no trouble showing icons

2) I've used the same icon theme for many releases now. If the issue was caused by icon set being incomplete, why does the problem manifest only now.

3) effect is not limited to certain icons. No icon gets shown properly, even when menu points to a specific icon file that I have checked to be present.

But thanks, who knows, maybe you are even right and I just don't understand the issue.

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Issue with icons
« Reply #3 on: 03. March 2016, 18:54:40 »
It was guessing, partly in hope to activate the expert's creativity. ;)
Can you post some screenshots of the issue?
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #4 on: 04. March 2016, 11:01:31 »
I'll upload some once I get to my computer

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #5 on: 05. March 2016, 11:24:21 »
Okay, here are some pics:
Notice the bad looking buttons on midori and icons missing from mygtkmenu. As can be seen from filemanager and menu file, the icons that menu points to exist on the filesystem, but are not displayed.

Here is how that menu should look like (same icons, same menufile, same version of the app):



Here is another shot:


Notice that settings.ini has Menda-Circle chosen and lxappearance recognizes this. Also notice that Menda-Circle is present in /usr/share/icons/. And lxappearance and spacefm showing Adwaita icons while Menda-Circle is chosen.


My theory is that there is a hidden dependency that is needed to display .svg icons. I base this on the error message given by mygtkmenui (see first post). I just wish I knew where to look.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #6 on: 05. March 2016, 15:15:21 »
Okay, by trial and error I found out that the missing package was librsvg. Solved.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #7 on: 05. March 2016, 19:01:50 »
Less solved than I thougth. Reinstalling librsvg on iso makes icons work, but just having librsvg on iso does not. Weird.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #8 on: 06. March 2016, 09:25:45 »
Could this be about order in which applications are installed? I added librsvg to Packages-Bspwm, but it did not solve the issue.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #9 on: 07. March 2016, 07:02:49 »
My research indicates that running
Code: [Select]
usr/bin/gdk-pixbuf-query-loaders --update-cacheMight solve the issue. Does anybody know a good way to autostart this on iso? It needs sudo rights.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #10 on: 07. March 2016, 08:20:27 »
Confirmed.
Code: [Select]
sudo usr/bin/gdk-pixbuf-query-loaders --update-cacheFixes icons. The 'manjaro' user seems to not need password with sudo, so adding it bspwmrc/xinitrc of the live user might do the trick. Not sure if it works for the installed ayatem though.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Issue with icons
« Reply #11 on: 10. March 2016, 02:19:55 »
Issue was caused by something in the host system. Building with different host foxes the issue.