new script: sane-wipe-fractal

This commit is contained in:
Colin 2023-10-24 00:38:41 +00:00
parent 1ced3db806
commit 501e79006c
3 changed files with 21 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p libsecret -p systemd
# deletes Fractal accounts, which are prone to breakages
systemctl --user stop fractal
# first, ensure the relevant secrets are unlocked
secret-tool search --all --unlock 'xdg:schema' 'org.gnome.Fractal'
secret-tool search --all --unlock 'xdg:schema' 'org.gnome.Fractal.Hack'
# then, delete them
secret-tool clear 'xdg:schema' 'org.gnome.Fractal'
secret-tool clear 'xdg:schema' 'org.gnome.Fractal.Hack'
# N.B.: it may be necessary still to delete ~/.local/share/fractal/* (unsure)