From nobody@FreeBSD.org  Sat Jul  1 19:07:24 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C3CE116A58C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Jul 2006 19:07:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3408343D6B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Jul 2006 19:07:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k61J7Naw048510
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 1 Jul 2006 19:07:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k61J7NDi048509;
	Sat, 1 Jul 2006 19:07:23 GMT
	(envelope-from nobody)
Message-Id: <200607011907.k61J7NDi048509@www.freebsd.org>
Date: Sat, 1 Jul 2006 19:07:23 GMT
From: Martin <nakal@nurfuerspam.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gtk-update-icon-cache is not being run often enough
X-Send-Pr-Version: www-2.3

>Number:         99696
>Category:       ports
>Synopsis:       gtk-update-icon-cache is not being run often enough
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 19:10:14 GMT 2006
>Closed-Date:    Sat Jul 01 22:57:02 GMT 2006
>Last-Modified:  Sat Jul 01 22:57:02 GMT 2006
>Originator:     Martin
>Release:        FreeBSD-STABLE
>Organization:
>Environment:
multiple machines (running 6.x releases and -STABLE)
>Description:
When installing more and more ports for Gnome2, you can run into performance
problems, while using drop-down menus/windows with lots of icons.

Examples are: firefox bookmark toolbar, Gnome2 menu bar and other applications that show many icons at once. A click into firefox bookmarks can take over 10 seconds to make the drop-down menu appear.

I traced it down and noticed that icons in the gnome directories are being scanned again and again. The cache, even it had a fresh timestamp, has not been used.

>How-To-Repeat:
I'm not really sure how to reproduce it. What I had here is a Gnome2 desktop with a manually installed theme/icons for my user (please note that the custom icons are in my $HOME/.icons directory and have nothing to do with the way how to fix the problem).

I installed Xfce4 yesterday and the problem appeared today after starting the laptop. This is the third PC the problem appears on and I always fixed it with the fix suggested below.

>Fix:
It seems that gtk-update-icon-cache is not being run often enough after installing new themes.

To fix the problems I found out that it is sufficient to run:
gtk-update-icon-cache --force <directory-path>
on all /usr/X11R6/share/icons/ directories (please note: you are required to use --force because of the problem with the cache timestamp that is up-to-date).

I would like to know if:
- this problem can be solved by running "gtk-update-icon-cache --force" after some specific port installations
- this is a bug in GTK-support
- this is my fault, because I'm doing something I'm not aware of

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jul 1 22:39:15 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99696 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sat Jul 1 22:55:44 UTC 2006 
State-Changed-Why:  
Any GTK+-based port which installs icons into /usr/X11R6/share/icons or 
/usr/local/share/icons should add INSTALLS_ICONS to its Makefile, and have 
a dependency on gtk20.  If you find such ports that do not have INSTALLS_ICONS, 
please file PRs against them individually. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99696 
>Unformatted:
