new script: sane-wipe-flare

This commit is contained in:
Colin 2023-10-31 06:54:53 +00:00
parent 028689cf86
commit 713bbffd7d
3 changed files with 18 additions and 0 deletions

View File

@ -47,6 +47,7 @@ in
"sane-scripts.vpn"
"sane-scripts.which"
"sane-scripts.wipe-browser"
"sane-scripts.wipe-flare"
"sane-scripts.wipe-fractal"
];
"sane-scripts.sys-utils" = declPackageSet [

View File

@ -211,6 +211,11 @@ let
pname = "sane-wipe-browser";
src = ./src;
};
wipe-flare = static-nix-shell.mkBash {
pname = "sane-wipe-flare";
src = ./src;
pkgs = [ "dconf" "libsecret" ];
};
wipe-fractal = static-nix-shell.mkBash {
pname = "sane-wipe-fractal";
src = ./src;

View File

@ -0,0 +1,12 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p dconf -p libsecret
# deletes Flare account, which is easy to break during setup
secret-tool search --all --unlock 'xdg:schema' 'de.schmidhuberj.Flare'
secret-tool clear 'xdg:schema' 'de.schmidhuberj.Flare'
dconf reset -f /de/schmidhuberj/Flare/
rm -rf ~/.local/share/flare
echo "you may repair Flare. after doing so, mv ~/.local/share/flare ~/private/.local/share/flare to persist"