remove singletons on launch if not running

This commit is contained in:
thelamer 2025-03-12 14:17:39 -04:00
parent e4e6203c4d
commit d83d3528d4
3 changed files with 7 additions and 0 deletions

View File

@ -416,6 +416,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **12.03.25:** - Clear singletons one launch to properly support persistance.
* **13.02.24:** - Remove manual codecs ingestion.
* **10.02.24:** - Update Readme with new env vars and ingest proper PWA icon.
* **06.01.24:** - Rebase to Debian Bookworm.

View File

@ -108,6 +108,7 @@ init_diagram: |
"opera:latest" <- Base Images
# changelog
changelogs:
- {date: "12.03.25:", desc: "Clear singletons one launch to properly support persistance."}
- {date: "13.02.24:", desc: "Remove manual codecs ingestion."}
- {date: "10.02.24:", desc: "Update Readme with new env vars and ingest proper PWA icon."}
- {date: "06.01.24:", desc: "Rebase to Debian Bookworm."}

View File

@ -1,5 +1,10 @@
#! /bin/bash
# Cleanup
if ! pgrep opera > /dev/null;then
rm -f $HOME/.config/opera/Singleton*
fi
BIN=/usr/bin/opera-real
LANG=$(echo $LC_ALL| sed 's/\.UTF-8//g'| sed 's/_/-/g')
LANG_SHORT=$(echo $LANG | awk -F'-' '{print $1}')