[gnome-boxes] util: Keep configuration data in .config not .cache



commit d5a9628baef622b49f4b3cc41bac2f1f9ee7b518
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 15 12:40:25 2016 +0000

    util: Keep configuration data in .config not .cache
    
    Commit 54bb203e14a2b276ae34677e682ce17efd34e0dd caused a regression
    where we started to put configuration files into .cache instead of
    .config. This patch fixes that regression.

 src/util.vala |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index 7f158f4..c2c5a99 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -34,7 +34,11 @@ namespace Boxes {
     }
 
     public string get_user_unattended (string? file_name = null) {
-        return get_cache ("unattended", file_name);
+        var dir = Path.build_filename (get_user_pkgconfig (), "unattended");
+
+        ensure_directory (dir);
+
+        return Path.build_filename (dir, file_name);
     }
 
     public string get_user_pkgcache (string? file_name = null) {
@@ -74,7 +78,11 @@ namespace Boxes {
     }
 
     public string get_user_pkgconfig_source (string? file_name = null) {
-        return get_cache ("sources", file_name);
+        var dir = Path.build_filename (get_user_pkgconfig (), "sources");
+
+        ensure_directory (dir);
+
+        return Path.build_filename (dir, file_name);
     }
 
     public string get_utf8_basename (string path) {


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