WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: missing icons in gtk applications  (Read 3328 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
missing icons in gtk applications
« 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
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: missing icons in gtk applications
« Reply #1 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/

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: missing icons in gtk applications
« Reply #2 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.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: missing icons in gtk applications
« Reply #3 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/
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: missing icons in gtk applications
« Reply #4 on: July 16, 2015, 12:53:24 PM »
Ok, I can put a check for that in as well.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: missing icons in gtk applications
« Reply #5 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
« Last Edit: March 24, 2016, 07:53:46 AM by jls »
dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: missing icons in gtk applications
« Reply #6 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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: missing icons in gtk applications
« Reply #7 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.
« Last Edit: March 25, 2016, 08:42:01 PM by Jason W »

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: missing icons in gtk applications
« Reply #8 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»

dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: missing icons in gtk applications
« Reply #9 on: April 10, 2016, 09:50:51 AM »
Ok, I will add it in.  thanks.