From 24fb5664d8d56433c4136f367c303ba5a95ad9e6 Mon Sep 17 00:00:00 2001 From: Hsuan-Ting Lu Date: Tue, 26 Sep 2023 16:19:15 -0400 Subject: [PATCH] Fix start.bash under sudo Preserve environment variables, especially PATH. Tested on Raspberry Pi OS 64bit v2023-05-03 (Debian 11 + kernel v6.1) --- ui/start.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/start.bash b/ui/start.bash index 0e9e10ad..020c4d8d 100755 --- a/ui/start.bash +++ b/ui/start.bash @@ -1,3 +1,3 @@ #!/bin/bash - sudo streamlit run Device_List.py --server.port 33761 --browser.gatherUsageStats false --server.headless true --server.baseUrlPath "inspector_dashboard" + sudo -E env PATH=$PATH streamlit run Device_List.py --server.port 33761 --browser.gatherUsageStats false --server.headless true --server.baseUrlPath "inspector_dashboard"