fix WebCord wrapper race condition

This commit is contained in:
Gerg-L 2023-03-23 19:39:33 -04:00
parent 15e3811323
commit 6ffe0a3bfc
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ inputs: {
pkgs.webcord
];
postBuild = ''
wrapProgram "$out/bin/webcord" --run 'rm $HOME/.config/WebCord/windowState.json'
wrapProgram "$out/bin/webcord" --run 'if ( test -e $HOME/.config/WebCord/windowState.json ); then rm $HOME/.config/WebCord/windowState.json; fi'
'';
})
];