[gnome-boxes] Ensure images directory exists before using it



commit a235135c64f6d282da3d6a4a8e9ee4ad8748d518
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Nov 18 18:23:28 2011 +0200

    Ensure images directory exists before using it

 src/vm-creator.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index e51418a..7aa6134 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -193,6 +193,7 @@ private class Boxes.VMCreator {
         var pool = connection.find_storage_pool_by_name (Config.PACKAGE_TARNAME);
         if (pool == null) {
             var pool_path = get_pkgconfig ("images");
+            ensure_directory (pool_path);
             var xml = "<pool type='dir'>\n" +
                       "<name>" + Config.PACKAGE_TARNAME + "</name>\n" +
                       "  <source>\n" +



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