[gnome-boxes] Make sure VM image dir exists
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Make sure VM image dir exists
- Date: Wed, 1 Feb 2012 14:57:16 +0000 (UTC)
commit c2a77d21ccde7ac17c8fdda2eed54d1811b4c2bc
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Feb 1 15:21:22 2012 +0100
Make sure VM image dir exists
When moving the VM image directory to XDG_CONFIG_DIR, I removed an
ensure_directory() call that should have been kept. This results in
the 'images' subdirectory of XDG_CONFIG_DIR/gnome-boxes not being
created, which then causes VM creation failures on "new" systems.
This should fix bug #668536.
src/vm-configurator.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 6e25f44..fe8787c 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -77,6 +77,7 @@ private class Boxes.VMConfigurator {
public StoragePool get_pool_config () throws GLib.Error {
var pool_path = get_user_pkgdata ("images");
+ ensure_directory (pool_path);
var pool = new StoragePool ();
pool.set_pool_type (StoragePoolType.DIR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]