[Xfce4-commits] <midori:master> Don't prepend the current folder to absolute filenames
Christian Dywan
noreply at xfce.org
Mon Nov 2 22:38:01 CET 2009
Updating branch refs/heads/master
to 2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c (commit)
from 219872aa8f7f3c0a6650956289f3b0a29ca13244 (commit)
commit 2d790a47a3fd2a2bd23b58284dcf2ee07fd4b33c
Author: Christian Dywan <christian at 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,
More information about the Xfce4-commits
mailing list