adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
452 stars 239 forks source link

Update install.sh #82

Closed Gary202 closed 4 years ago

Gary202 commented 4 years ago

Added $HOME/ instead "/home/pi/" to the install.sh script so the currect homefolder will be used for the video folder install portion instead of the pi home folder. since some installations might not use the pi user.

not sure where else to make the changes ????

tofuSCHNITZEL commented 4 years ago

since the install.sh is run with sudo the $HOME folder would be under /root/ and not under your user.

also the $HOME variable cannot be used in the ini file because the python function that uses the text of the path setting does not expand shell variables. (and even if it would, since its run under root it would also point to /root/ and not "your" home folder)

please test your code before you create pull requests.