-Numerous changes to make more generic. Use varialbe for username. Defaults to "pi

-
This commit is contained in:
2022-05-08 14:40:16 +00:00
parent fc0b355f1d
commit d539e40943
36 changed files with 137 additions and 109 deletions

View File

@@ -3,7 +3,7 @@
#launch browser on local display
function launch_browser {
DISPLAY=:0 /usr/bin/chromium-browser `shuf -n 1 /home/pi/Documents/facebook_url.list` &
DISPLAY=:0 /usr/bin/chromium-browser `shuf -n 1 /home/'{{ def_username }}'/Documents/facebook_url.list` &
}
#prevent race condition/memory exhaustion
@@ -17,6 +17,6 @@ else
sleep 10
done
/usr/bin/killall chrome
rm /home/pi/.config/chromium/BrowserMetrics/*
rm /home/'{{ def_username }}'/.config/chromium/BrowserMetrics/*
fi