On Tue, 10 Dec 2013 17:30:10 +0100 Markus Teich <markus.te...@stusta.mhn.de> wrote:
> Heyho, > > this morning I wondered how to open a file from the filesystem in > surf, but neither "file://" nor "file:///" did work. Is it even > possible? Thanks. > > --Markus > Hello loaduri function in surf includes the following lines: /* In case it's a file path. */ if(stat(uri, &st) == 0) { rp = realpath(uri, NULL); u = g_strdup_printf("file://%s", rp); free(rp); } That is, you can just throw in a relative file path into surf without "file:" protocol prefix. Sincerely Eon