Blob Blame History Raw
From e0207f301ae78983d5004bc93943cf2fffdc0b5e Mon Sep 17 00:00:00 2001
From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org>
Date: Wed, 21 Aug 2013 23:36:46 +0300
Subject: [PATCH] wizard: Handle paths as well

In commit 3c1b44c, we lost the ability to handle local paths in wizard.
This patch brings back that ability.

https://bugzilla.gnome.org/show_bug.cgi?id=688798
---
 src/wizard.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wizard.vala b/src/wizard.vala
index d007302..9ff99f5 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -226,7 +226,7 @@ private void prepare_for_location (string location, bool probing = false) throws
         if (location == "")
             throw new Boxes.Error.INVALID ("empty location");
 
-        var file = File.new_for_uri (location);
+        var file = location.contains ("://")? File.new_for_uri (location) : File.new_for_path (location);
 
         if (file.is_native ()) {
             // FIXME: We should able to handle non-local URIs here too
-- 
2.1.0