update init to remove lockfiles if they exist

This commit is contained in:
thelamer 2025-02-04 15:43:13 -05:00
parent 99baff6434
commit d14dd0777e
3 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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."}

View File

@ -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} \