Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: jls on July 14, 2015, 05:16:17 AM

Title: missing icons in gtk applications
Post by: jls on July 14, 2015, 05:16:17 AM
Running /usr/bin/gdk-pixbuf-query-loaders --update-cache as root
as I found in https://bbs.archlinux.org/viewtopic.php?id=171188 (https://bbs.archlinux.org/viewtopic.php?id=171188)
Title: Re: missing icons in gtk applications
Post by: Jason W on July 15, 2015, 08:03:59 AM
I was going to ask what application so I could add "/usr/local/postinst/libgdk-pixbuf2.0-0 trigger" to it  (this is the Debian startup script command that does the same), but adding this to sce-load would prevent any future issue and prevent having to hunt down offending packages and create individual startup scripts.

The below logic will let sce-load run this command when needed, like we do depmod when there are kernel modules in an SCE being loaded:

Basically, if the below directory exists inside an SCE, then run "/usr/local/postinst/libgdk-pixbuf2.0-0 trigger"

/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/
Title: Re: missing icons in gtk applications
Post by: Jason W on July 15, 2015, 08:46:51 AM
Ok, I have used checking for pixbuf loaders as well as gtk2 and gtk3 immodules upon sce-load.  This should prevent any issues with loaders or immodules in apps.  The commands take a fraction of a second and will prevent existing breakage and the need for individual startup scripts involving these cache updates sometimes needed.

It should work, please test on the offending extension and and verify.  Uploaded to release.
Title: Re: missing icons in gtk applications
Post by: jls on July 15, 2015, 04:01:04 PM
what about
Code: [Select]
  6 /usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas/
Title: Re: missing icons in gtk applications
Post by: Jason W on July 16, 2015, 12:53:24 PM
Ok, I can put a check for that in as well.
Title: Re: missing icons in gtk applications
Post by: jls on March 24, 2016, 07:49:24 AM
Hi
I see the problem still exists.
Trying shotwell for example, I need to :
Code: [Select]

sudo /usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share
/glib-2.0/schemas/

sudo /usr/local/postinst/libgdk-pixbuf2.0-0 trigger
for shotwell to start I need to remove /usr/bin/shotwell and copy it from the one in tcloop.
Thanks

PS. using shotwell from the yorba's ppa
Title: Re: missing icons in gtk applications
Post by: Juanito on March 24, 2016, 08:25:02 AM
This is also a problem when shotwell is compiled on tc - it will not work until copied into the root filesystem
Title: Re: missing icons in gtk applications
Post by: Jason W on March 25, 2016, 08:37:03 PM
Thanks JLS and Juanito for the info of the needed copy over, will add it in the startup script.

EDIT: added now.
Title: Re: missing icons in gtk applications
Post by: jls on March 29, 2016, 07:38:30 AM
Hi
Thaks Jason,
I still eed to run:
Quote
sudo /usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas/
to avoid:
Code: [Select]
L 22279 2016-03-29 13:29:13 [CRT] ConfigurationInterfaces.vala:371: configuratio
n engine 'GSettings' reports ENGINE_ERROR: schema 'org.yorba.shotwell.preference
s.window' is not installed
and also:
Code: [Select]
sudo /usr/local/postinst/libgdk-pixbuf2.0-0 trigger
to avoid
Code: [Select]
L 23146 2016-03-29 13:32:03 [CRT] Resources.vala:918: Unable to load stock icon
shotwell-pin-toolbar: Impossibile riconoscere il formato di immagine per il file
 «/usr/share/shotwell/icons/pin-toolbar.svg»

Title: Re: missing icons in gtk applications
Post by: Jason W on April 10, 2016, 09:50:51 AM
Ok, I will add it in.  thanks.