[gnome-boxes] wizard: Handle paths as well



commit 719eacd2245fe3431edd8165ae86fdbe4694f444
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Aug 21 23:36:46 2013 +0300

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index d1fdfc3..4b96955 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -226,7 +226,7 @@ private class Boxes.Wizard: Boxes.UI {
         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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]