In previous patches I forgot to use the file absolute path when
processing a file:// schema. Webkit doesn't work with relative paths, so
this is needed for opening something with "eve my_file.html"

Bye.
From 3fec8dfb828e39d48a43ca0993573b6e90435b8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <m...@3v1n0.net>
Date: Mon, 29 Nov 2010 17:44:41 +0100
Subject: [PATCH] eve: use the file realpath when processing a file:// schema

---
 src/bin/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 7fb53b0..5475753 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -590,7 +590,10 @@ uri_sanitize(const char *uri) {
    if (!tmp || tmp == uri || tmp > uri+15)
      {
         if (ecore_file_exists(uri))
-          schema = "file";
+          {
+             schema = "file";
+             uri = ecore_file_realpath(uri);
+          }
         else
           schema = "http";
 
-- 
1.7.1

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to