install: better install + use data and state

Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
This commit is contained in:
2 * r + 2 * t
2025-02-22 14:25:41 +11:00
parent 9f51b6eeed
commit 669eaa61cb
16 changed files with 113 additions and 103 deletions
+4 -4
View File
@@ -47,14 +47,14 @@ end
. (dirname (status filename))/util.fish
set storage_dir (xdg-user-dir VIDEOS)/Recordings
set cache_dir $CACHE/record
set state_dir $C_STATE/record
mkdir -p $storage_dir
mkdir -p $cache_dir
mkdir -p $state_dir
set file_ext 'mp4'
set recording_path "$cache_dir/recording.$file_ext"
set notif_id_path "$cache_dir/notifid.txt"
set recording_path "$state_dir/recording.$file_ext"
set notif_id_path "$state_dir/notifid.txt"
if pgrep wf-recorder > /dev/null
pkill wf-recorder