From: Christian Dywan Date: Mon, 2 Nov 2009 21:33:37 +0000 (+0100) Subject: Don't prepend the current folder to absolute filenames X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c;p=midori Don't prepend the current folder to absolute filenames --- diff --git a/midori/main.c b/midori/main.c index 0deeb490..474d1e5e 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1999,7 +1999,9 @@ main (int argc, { item = katze_item_new (); /* Construct an absolute path if the file is relative */ - if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) + if (g_path_is_absolute (uri)) + uri_ready = g_strconcat ("file://", uri, NULL); + else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { gchar* current_dir = g_get_current_dir (); uri_ready = g_strconcat ("file://", current_dir,