From f8bd2b116dffd731f6c85f4c30f7d553afa539f9 Mon Sep 17 00:00:00 2001 From: TheJoeCoder <joe@radialbog9.uk> Date: Tue, 24 Sep 2024 11:34:52 +0100 Subject: [PATCH] Log and fix --- .gitignore | 3 ++- run-pi.sh | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6bbc21e..f446f82 100644 --- a/.gitignore +++ b/.gitignore @@ -127,4 +127,5 @@ dmypy.json cython_debug/ module_config.json -hw_config.json \ No newline at end of file +hw_config.json +app.log diff --git a/run-pi.sh b/run-pi.sh index 2552ef5..e5dc635 100755 --- a/run-pi.sh +++ b/run-pi.sh @@ -2,6 +2,9 @@ cd "$(dirname "$0")" || exit +# Sleep for 10 seconds +sleep 10 + # Run the script -xhost +SI:localuser:root -sudo ./.venv/bin/python3 main.py +DISPLAY=:0 xhost + && \ + sudo DISPLAY=:0 ./.venv/bin/python3 main.py > ./app.log 2>&1 -- GitLab