Updating branch refs/heads/master
         to 2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c (commit)
       from 219872aa8f7f3c0a6650956289f3b0a29ca13244 (commit)

commit 2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c
Author: Christian Dywan <christ...@twotoasts.de>
Date:   Mon Nov 2 22:33:37 2009 +0100

    Don't prepend the current folder to absolute filenames

 midori/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 0deeb49..474d1e5 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,
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to