After installation icon theme default to gnome-icon-theme and cannot be changed

Bug #719861 reported by Jean-Baptiste Lallement
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
librsvg (Ubuntu)
Fix Released
High
Sebastien Bacher
Natty
Fix Released
High
Sebastien Bacher

Bug Description

Binary package hint: gnome-icon-theme

After a fresh installation of Natty, the icon theme displayed is gnome-icon-theme and can not be changed.
In gnome-appearance-properties the theme selected is Ambiance and the icon theme is Ubuntu-mono-dark.
If you select another icon theme, the theme displayed does not change (still gnome-icon-theme)

gnome-setting-deamon is running
The problem is the same with Unity and a Classic Desktop session.

TEST CASE:
1. Install Natty

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gnome-icon-theme 2.31.0-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-3.30-generic 2.6.38-rc4
Uname: Linux 2.6.38-3-generic i686
Architecture: i386
Date: Wed Feb 16 09:23:50 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110209)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-icon-theme

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
Changed in gnome-icon-theme (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

illustration of the problem with the launcher of Unity

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

confirmed by another user in an unrelated bug report. I filed it against gnome-icon-theme but please reaffect to the right package

Changed in gnome-icon-theme (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, could you add your .xsession-errors to the bug? I can't confirm with a normal user or a guest session on an installed system but will try later with a daily build iso

affects: gnome-icon-theme (Ubuntu) → gnome-settings-daemon (Ubuntu)
Changed in gnome-settings-daemon (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

here it is.

Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, I checked on that and find a clue in the daily livefs build:
"libpixbufloader-svg.so: libGL.so.1: cannot open shared object file: No such file or directory"

the issue is that the libgdk-pixbuf is ran before the libgl ldconfig call so it doesn't find it

doing a "sudo apt-get install libgdk-pixbuf2.0-0 --reinstall" should workaround the issue

affects: gnome-settings-daemon (Ubuntu) → librsvg (Ubuntu)
affects: librsvg (Ubuntu) → gdk-pixbuf (Ubuntu)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

After applying the workaround, logout/login this issue disappear.
I don't know if it can be related, but after that workaround I'm unable to reproduce the nautilus crash in bug 718098 anymore.

Changed in gdk-pixbuf (Ubuntu):
status: Confirmed → Triaged
Martin Pitt (pitti)
Changed in gdk-pixbuf (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Sebastien Bacher (seb128)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, so that's what happens there:

* libcairo brings in libgl1 since it's built with gl on
* librsvg2-common is unpackaged before libgdk-pixbuf2.0-0 is configured (which means the trigger is set after the file is installed so it will not trigger)
* libgdk-pixbuf2.0-0 is configured before libgl1 (which means ldconfig for libgl is not run yet)

so the only time the loaders list is updated is during the libgdk-pixbuf2.0-0 configuration, and that call fails to add the svg loader because libGL can't be found at this time because ldconfig has not been called... one way to deal with that is to use LDCONFIG_NOTRIGGER=y so the ldconfig update will happens before gdk-pixbuf-update is called.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdk-pixbuf - 2.23.0-1ubuntu2

---------------
gdk-pixbuf (2.23.0-1ubuntu2) natty; urgency=low

  * debian/libgdk-pixbuf2.0-0.postinst:
    - use LDCONFIG_NOTRIGGER=y, some of the librairies needed to update the
      loaders list might not be configured yet, that should fix the case where
      the svg loader is missing after the initial installation (lp: #719861)
 -- Sebastien Bacher <email address hidden> Wed, 16 Feb 2011 18:59:17 +0100

Changed in gdk-pixbuf (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

still have this bug in the current live-cd image. (maybe fix does not apply when generating the image)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This issue is not fixed with libgdk-pixbuf2.0-0 2.23.0-1ubuntu3 and can be reproduced with the desktop ISO i386 20110228
I'm reopening this report.

Changed in gdk-pixbuf (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :
affects: gdk-pixbuf (Ubuntu Natty) → librsvg (Ubuntu Natty)
Revision history for this message
Sebastien Bacher (seb128) wrote :

new librsvg with a fix uploaded

Changed in librsvg (Ubuntu Natty):
status: In Progress → Fix Released
Revision history for this message
Drael (draelmaster) wrote :

Hello sorry for my English, I am using a translator.

I had the same problem on a virtual machine, I got a workaround that did the thema and icons work normally, the following steps:

sudo gnome-appearance-properties% F (after running this command icons back to work and modifications can be made on theme and fonts.

Restart Nautilus:

just run:

nautilus -q (without sudo)

Hope this helps in some way at least you can use ubuntu normally.

Revision history for this message
Bela Lubkin (filbo) wrote :

Warning generated by this fix:

Setting up librsvg2-common (2.34.1-2) ...
/var/lib/dpkg/info/librsvg2-common:amd64.postinst: 15: cannot create /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0//gdk-pixbuf-query-loaders/loaders.cache: Directory nonexistent

Patch is attached.

tags: added: testcase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.