[haiku-development] Re: find it icon problem, but ...

2007/6/22, Jonas Sundström <jonas@xxxxxxxxxxx>:


Commit r21484 by korli to /haiku/trunk/src/bin/mimeset.cpp:
"actually exit with an error when it happens"
kind of ground my builds to a halt, as the snag in mimesetting
FileType-F was -quite- reproducible. :)


I have some problems with mimeset on x86_64, which makes me interested in
your issue :)
It fails somewhere in BAppFileInfo::SetSignature().

It seems UpdateMimeInfoThread::DoMimeUpdate() fails in the
section below "// supported types". Roughly this sequence:

BAppFileInfo appFileInfoRead;
BAppFileInfo appFileInfoWrite;
// we read from resources and write to attributes
appFileInfoRead.SetInfoLocation(B_USE_RESOURCES);
appFileInfoWrite.SetInfoLocation(B_USE_ATTRIBUTES);
...
BMessage supportedTypes;
err = appFileInfoRead.GetSupportedTypes(&supportedTypes);
err = appFileInfoWrite.SetSupportedTypes(&supportedTypes);

I believe the last call fails on FileType-F, for some reason.

AppFileInfo.cpp's _Read/_Write/_RemoveData do not seem
to use the fWhere member.


However, these methods seem to use IsUsingAttributes() and
IsUsingResources().
I don't have much time atm.

Bye,
Jérôme

Other related posts: