From d83d3528d4a079b8ec598b62dbfc13752afb43b6 Mon Sep 17 00:00:00 2001 From: thelamer Date: Wed, 12 Mar 2025 14:17:39 -0400 Subject: [PATCH] remove singletons on launch if not running --- README.md | 1 + readme-vars.yml | 1 + root/usr/bin/opera | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 50a31af..54c4ae5 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/readme-vars.yml b/readme-vars.yml index d4234c3..a141dba 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -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."} diff --git a/root/usr/bin/opera b/root/usr/bin/opera index 07962dc..c871148 100755 --- a/root/usr/bin/opera +++ b/root/usr/bin/opera @@ -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}')