WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LXPanel not showing SVG-icons (proposed fix)  (Read 3249 times)

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
LXPanel not showing SVG-icons (proposed fix)
« on: November 25, 2017, 11:09:36 AM »
 I have been struggling with LXPanel to have it show icons for Gnome-EncFS-Manager. In the end it turned out that LXPanel does not know how to load SVG-icons. The fix is have root run
Code: [Select]
/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders > /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cacheThis should be included in a startup-script for LXPanel.
« Last Edit: November 25, 2017, 11:13:08 AM by sm8ps »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: LXPanel not showing SVG-icons (proposed fix)
« Reply #1 on: November 25, 2017, 07:07:59 PM »
Thanks for the find.  The command you posted would be good for x86 only, one that would work across all archetectures and does the same thing is:

/usr/local/postinst/libgdk-pixbuf2.0-0 trigger

Since there is no telling how many packages might need this command, I have added it in sce-load along with commands to update gtk2 and gtk3 immodules.  The 3 commands on my machine take a total of .14 seconds using the "time" command to measure.  Not noticable and I have 2.8 GB of loaded files installed under /tmp/tcloop.  The below has been added to sce-load to make sure the trigger commands are run if they exist. 

if [ -e /usr/local/postinst/libgdk-pixbuf2.0-0 ]; then
   sudo /usr/local/postinst/libgdk-pixbuf2.0-0 trigger > /dev/null 2>&1
fi

if [ -e /usr/local/postinst/libgtk2.0-0 ]; then
   sudo /usr/local/postinst/libgtk2.0-0 trigger > /dev/null 2>&1
fi

if [ -e /usr/local/postinst/libgtk-3-0 ]; then
   sudo /usr/local/postinst/libgtk-3-0 trigger > /dev/null 2>&1
fi

I have added this to sce-load and have posted a new RC.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: LXPanel not showing SVG-icons (proposed fix)
« Reply #2 on: November 27, 2017, 09:02:05 AM »
Thanks for your added refinement of the solution! Glad to see it is useful.