[polari] app: Save initial-setup guard file in xdg-data



commit 42494ad4c382b1147d1f3794a0a535f11348ffae
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 72344fb..1d8631d 100644
--- a/src/application.js
+++ b/src/application.js
@@ -537,7 +537,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]