From 2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 2 Nov 2009 22:33:37 +0100 Subject: [PATCH] Don't prepend the current folder to absolute filenames --- midori/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.39.5