[gnome-boxes/gnome-3-8] wizard: Handle paths as well
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-8] wizard: Handle paths as well
- Date: Wed, 5 Mar 2014 00:53:35 +0000 (UTC)
commit e0207f301ae78983d5004bc93943cf2fffdc0b5e
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 d007302..9ff99f5 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]