From 1e7c77574169e5224fec55cc47a07f43d442d445 Mon Sep 17 00:00:00 2001 From: Constantin Piber <59023762+cpiber@users.noreply.github.com> Date: Wed, 2 Jul 2025 19:20:04 +0200 Subject: [PATCH] Remove lock of dead Xvfb instances on start (#139) When restarting the container, `Xvfb` is killed quite rudely, so it doesn't have time to clean up the lock. This means that on subsequent starts (without recreating the container), `Xvfb` refuses to start and thus the WebView fails. --- scripts/startup_script.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index 1977a5f..5ade4c0 100755 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -90,6 +90,7 @@ sed -i -r "s/server.opdsShowOnlyDownloadedChapters = ([0-9]+|[a-zA-Z]+)( #)?/ser sed -i -r "s/server.opdsChapterSortOrder = \"(.*?)\"( #)?/server.opdsChapterSortOrder = \"${OPDS_CHAPTER_SORT_ORDER:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf if command -v Xvfb >/dev/null; then + rm -f /tmp/.X0-lock Xvfb :0 -screen 0 800x680x24 -nolisten tcp >/dev/null 2>&1 & export DISPLAY=:0