-Numerous changes to make more generic. Use varialbe for username. Defaults to "pi
-
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user