]> spindle.queued.net Git - midori/commitdiff
Don't prepend the current folder to absolute filenames
authorChristian Dywan <christian@twotoasts.de>
Mon, 2 Nov 2009 21:33:37 +0000 (22:33 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 2 Nov 2009 21:33:37 +0000 (22:33 +0100)
midori/main.c

index 0deeb49097d1d33e63163951981f891797a6cb26..474d1e5e7e2b4d5d1403cc5539c8217407cc82e1 100644 (file)
@@ -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,