Re: I found where the mistake is:

6 views
Skip to first unread message

Jonathon Jongsma

unread,
Oct 14, 2006, 2:09:31 PM10/14/06
to Varun Hiremath, colorsch...@googlegroups.com
On 10/14/06, Varun Hiremath <varunh...@gmail.com> wrote:
> Hello Jonathon,
>
> > ughh. I just tried to install the newly updated ubuntu package in my
> > edgy chroot (after they added the icon cache update) and now it
> > behaves just like yours does. I'm getting more and more confused...
>
> Well, I am also getting confused, because Torsten says, agave package
> works on his system, I mean at least it does not give any error, not sure if
> the icon is loading properly.

It looks like I was out when you tried to chat earlier. So Torsten
sees the correct icon in the window title bar and an image in the
'About' window?

> Actually, I never checked if the icon was loading properly. Now, I
> checked to find that it is not loading even if i patch at both the places
> and give the full path to the icon.

That's interesting. By the way, I got it to fail on my computer now
too. Earlier when I tried and said it worked, i was building and
installing it in /usr in my Ubuntu Edgy chroot. Now I just tried it
in my normal environment (running ubuntu Breezy), and I'm getting the
same error you see. So at least I can reproduce it now, so maybe
that's a good thing :)

> See this link, somebody was having similar problem:
> http://www.freelists.org/archives/emelfm2/07-2005/msg00005.html

I'm afraid that didn't help me all that much. Although that makes me
think we should move this discussion to a public mailing list so if we
find an answer it might help others later :) So I'm copying the
colorscheme-devel mailing list (that was the old name for agave). Can
you copy it when you reply as well (or join and just discuss it
there)?
For those that are on the list and confused by this: the issue is that
when installing it to a system prefix (i.e. /usr) for making a debian
package, it seems to crash because it can't find an icon with the
following message:

Ouch, that hurt.
Please report this error to http://gna.org/projects/colorscheme/
Include the following information:
Failed to open file
'/usr/local/share/icons/hicolor/scalable/apps/agave- icon.svg': No
such file or directory

And we can't seem to figure out where the /usr/local part is coming
from since it's nowhere in the code.

--
jonner

Jonathon Jongsma

unread,
Oct 14, 2006, 2:22:16 PM10/14/06
to Varun Hiremath, colorsch...@googlegroups.com

AHA!
I hope this is it. Varun, did you install to /usr/local first? If
you did, I think it updated your gtk icon cache under
/usr/local/share/icons/hicolor to include the agave icons in the icon
cache. After you uninstalled it, the icon cache still thinks there
are agave icons in that directory, even though they no longer exist,
and the icon cache is not updated on removal. Also,
/usr/local/share/icons is before /usr/share/icons in the theme search
path, so it finds the one in the /usr/local cache first, and tries to
load that one. But the file doesn't exist anymore.
So I think if you run
`gtk-update-icon-cache -f -t /usr/local/share/icons/hicolor`
to update the cache so that it knows the icons don't exist there
anymore, then it should work. Can you verify this for me?
--
jonner

Jonathon Jongsma

unread,
Oct 14, 2006, 5:49:21 PM10/14/06
to Varun Hiremath, colorsch...@googlegroups.com

Alright. I've committed this fix to git. It should now update the
icon cache when you uninstall the program. In addition, I now catch
the exception that caused the crash so if this would come up again in
the future, you'd only get a warning on the terminal and it wouldn't
show the icon instead of crashing the whole program. Thanks for your
help on this. I don't imagine you'll need this for the debian
package, but just in case, I'll attach the patch.

--
jonner

0001-Fix-for-stale-gtk-icon-cache.txt
Reply all
Reply to author
Forward
0 new messages