new script: sane-wipe-fractal
This commit is contained in:
@@ -47,6 +47,7 @@ in
|
|||||||
"sane-scripts.vpn"
|
"sane-scripts.vpn"
|
||||||
"sane-scripts.which"
|
"sane-scripts.which"
|
||||||
"sane-scripts.wipe-browser"
|
"sane-scripts.wipe-browser"
|
||||||
|
"sane-scripts.wipe-fractal"
|
||||||
];
|
];
|
||||||
"sane-scripts.sys-utils" = declPackageSet [
|
"sane-scripts.sys-utils" = declPackageSet [
|
||||||
"sane-scripts.ip-port-forward"
|
"sane-scripts.ip-port-forward"
|
||||||
|
@@ -211,6 +211,11 @@ let
|
|||||||
pname = "sane-wipe-browser";
|
pname = "sane-wipe-browser";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
};
|
};
|
||||||
|
wipe-fractal = static-nix-shell.mkBash {
|
||||||
|
pname = "sane-wipe-fractal";
|
||||||
|
src = ./src;
|
||||||
|
pkgs = [ "libsecret" "systemd" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in sane-bin // {
|
in sane-bin // {
|
||||||
lib = sane-lib;
|
lib = sane-lib;
|
||||||
|
15
pkgs/additional/sane-scripts/src/sane-wipe-fractal
Executable file
15
pkgs/additional/sane-scripts/src/sane-wipe-fractal
Executable 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)
|
Reference in New Issue
Block a user