[polari/gnome-3-32] app: Save initial-setup guard file in xdg-data



commit fa6faf4e2b5d8977436bcf5d6ce4175fe534c12f
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Apr 21 21:25:17 2019 +0200

    app: Save initial-setup guard file in xdg-data
    
    It is meant to guard a one-time action, so we should pick a persistent
    location, not the user cache dir.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/121

 src/application.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/application.js b/src/application.js
index b369960..4cee1b2 100644
--- a/src/application.js
+++ b/src/application.js
@@ -526,7 +526,7 @@ var Application = GObject.registerClass({
             return true;
         }
 
-        let path = `${GLib.get_user_cache_dir()}/polari/initial-setup-completed`;
+        let path = `${GLib.get_user_data_dir()}/polari/initial-setup-completed`;
         let f = Gio.File.new_for_path(path);
         try {
             this._touchFile(f);


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