[webkit-gtk] local files don't work

Josip josip at pisoj.com
Wed Oct 28 09:37:37 PDT 2009

Gustavo Noronha Silva wrote:
> On Wed, 2009-10-28 at 00:12 +0100, Josip wrote:
>> can somebody please explain how webkit handles local files (those 
>> accessed with "file://").
> It uses GIO.

$ pkg-config gio-2.0 --modversion

>> It looks like any local files is rendering just as ascii text.
>> So i would like to know what didReceiveResponse() actualy do and why 
>> that not works in windows.
> That's because of you missing shared-mime-info. GIO depends on that to
> correctly identify the content type of the file.

Thanks for help!

I have installed libwebkit-1.0-2.dll and update-mime-database.exe(from 
shared-mime-info-0.70) in directory C:\WebKitGTK-\bin and put 
their mime directory in C:\WebKitGTK-\share

Created environment variables:

   update-mime-database.exe C:\WebKitGTK-\share\mime

But local files still cant be opened. Did i miss something and what?


More information about the webkit-gtk mailing list