chore: move more files to XDG_STATE_HOME

This commit is contained in:
Cu3PO42
2024-04-03 21:56:05 +02:00
parent 0092e7f488
commit 97999cd4e4
10 changed files with 27 additions and 25 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class TodoService extends Service {
constructor() {
super();
this._todoPath = `${GLib.get_user_cache_dir()}/ags/user/todo.json`;
this._todoPath = `${GLib.get_user_state_dir()}/ags/user/todo.json`;
try {
const fileContents = Utils.readFile(this._todoPath);
this._todoJson = JSON.parse(fileContents);
+1 -1
View File
@@ -2,7 +2,7 @@ const { Gdk, GLib } = imports.gi;
import Service from 'resource:///com/github/Aylur/ags/service.js';
import * as Utils from 'resource:///com/github/Aylur/ags/utils.js';
const WALLPAPER_CONFIG_PATH = `${GLib.get_user_cache_dir()}/ags/user/wallpaper.json`;
const WALLPAPER_CONFIG_PATH = `${GLib.get_user_state_dir()}/ags/user/wallpaper.json`;
class WallpaperService extends Service {
static {