Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: sm8ps on November 25, 2017, 08:09:36 AM

Title: LXPanel not showing SVG-icons (proposed fix)
Post by: sm8ps on November 25, 2017, 08: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.
Title: Re: LXPanel not showing SVG-icons (proposed fix)
Post by: Jason W on November 25, 2017, 04: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.
Title: Re: LXPanel not showing SVG-icons (proposed fix)
Post by: sm8ps on November 27, 2017, 06:02:05 AM
Thanks for your added refinement of the solution! Glad to see it is useful.