diff --git a/README.md b/README.md index 2da0061..9860cc0 100644 --- a/README.md +++ b/README.md @@ -416,4 +416,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **04.02.25:** - Clean up Singletons if container is shut down while windows are open. * **25.04.24:** - Initial release. diff --git a/readme-vars.yml b/readme-vars.yml index 0b42569..1cae8a9 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -108,4 +108,5 @@ init_diagram: | "msedge:latest" <- Base Images # changelog changelogs: + - {date: "04.02.25:", desc: "Clean up Singletons if container is shut down while windows are open."} - {date: "25.04.24:", desc: "Initial release."} diff --git a/root/usr/bin/microsoft-edge b/root/usr/bin/microsoft-edge index 73c5f8a..31ef3c3 100755 --- a/root/usr/bin/microsoft-edge +++ b/root/usr/bin/microsoft-edge @@ -2,6 +2,11 @@ BIN=/usr/bin/microsoft-edge-real +# Cleanup +if ! pgrep msedge > /dev/null;then + rm -f $HOME/.config/microsoft-edge/Singleton* +fi + # Run normally on privved containers or modified un non priv if grep -q 'Seccomp:.0' /proc/1/status; then ${BIN} \