Bug 551709 - Emacs has missing icons on a minimal install. Fixed after manually running SuSEconfig
Summary: Emacs has missing icons on a minimal install. Fixed after manually running Su...
Status: RESOLVED DUPLICATE of bug 365649
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Other (show other bugs)
Version: RC 1
Hardware: i586 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 11:51 UTC by David Greaves
Modified: 2010-04-06 15:14 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Greaves 2009-11-01 11:51:21 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.4) Gecko/20091028 Iceweasel/3.5.4 (Debian-3.5.4-1)

Minimal server install from NET Build331
Emacs installed using zypper.
icons missing and 
emacs:12191): Gtk-WARNING **: Error loading theme icon 'gtk-open' for stock: Unrecognised image file format

(emacs:12191): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory



Reproducible: Always

Steps to Reproduce:
1. Install emacs after minimal install
2. DISPLAY=remote:0 emacs

Actual Results:  
icons missing and 

emacs:12191): Gtk-WARNING **: Error loading theme icon 'gtk-open' for stock: Unrecognised image file format

(emacs:12191): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory

appears a *lot*

Expected Results:  
icons appear and no error messages

running "SuSEconfig" manually fixed this.
Comment 1 Dr. Werner Fink 2009-11-17 09:30:50 UTC
About which emacs are you talking? XEamcs or GNU Emacs?
Comment 2 Dr. Werner Fink 2009-11-17 09:48:06 UTC
IMHO this is a GNOME problem as the error message is from a gnome interface.
The GNU Emacs has its pixmap installed under /usr/share/pixmaps/ as emacs.png
and several icons under /usr/share/icons/hicolor/.   If GNOME requires to
run SuSEconfig to find the icons this should (IMHO) done before starting
GNOME.
Comment 3 David Greaves 2009-11-17 10:12:35 UTC
Hi Werner

This is GNU emacs and I'm pretty sure this is not a gnome problem - I'm not running gnome at all. It's not even installed.

I'm running a minimal install, server only, and displaying emacs via a remote DISPLAY.

Nb, the icons in question are the icons inside emacs on the menu bar; not desktop icons (this may not have been clear).
Comment 4 Dr. Werner Fink 2009-11-17 10:29:05 UTC
On running GNOME I meant also the library its self.  It seems to me
that libgdk is not able to find common icons without running SuSEconfig.
This is a bit strange as emacs installs all required icons and I expect
that a library should find them, shouldn't it?  Or does this mean that
every package using GtK/GdK has to run SuSEconfig out from the spec
file?

Vincent?  As you have the majority in the changes of GtK2 I ask you
about this behaviour.  Does SuSEconfig have to be called by every
package providing icons at /usr/share/icons?
Comment 5 Vincent Untz 2009-11-17 15:29:21 UTC
The short story is that all packages installing icons in a theme directory should call gtk-update-icon-cache. But the thing is that we don't want every rpm to trigger this when you install tons of packages, and so we'd want triggers. See bug 365649 for the discussion and https://features.opensuse.org/305472 for the resulting feature request.

The likely fix will be file triggers (see http://stick.gk2.sk/blog/2009/10/rpm-summit-at-the-opensuse-conference-2009/)

So, going back to this bug: either the package should call gtk-update-icon-cache, or call SuSEconfig, or wait for a proper fix for the whole issue.
Comment 6 Dr. Werner Fink 2010-03-17 09:46:55 UTC
.. now ... what's about this proper fix for gtk-update-icon-cache problem?
Comment 7 Vincent Untz 2010-03-19 09:31:37 UTC
(In reply to comment #6)
> .. now ... what's about this proper fix for gtk-update-icon-cache problem?

As I said in the previous comment, we're waiting for a feature in rpm. Until it's there, the only fix is to call gtk-update-icon-cache in the scriptlets of the emacs package
Comment 8 Dr. Werner Fink 2010-04-06 15:14:47 UTC
Let's make this a duplicate of bug #305472 as this is a duplicate
and the way of using gtk-update-icon-cache seems to be a nogo, compare
with bug #395056

*** This bug has been marked as a duplicate of bug 365649 ***