external motion not working
sdetweil opened this issue · 1 comments
sdetweil commented
suddenly smart-mirror external motions function stopped working
Expected Behavior
when screen turned off, should turn on when motion is detected
Current Behavior
nothing happens
Steps to Reproduce (for bugs)
install, verify sm works...
stop sm, to do some other system stuff
start sm.. motion doesn't wake up anymore
sdetweil commented
the linux motion module runs as root, the external_motion script tries to get the running smart-mirror user to get the userid to set the detection files, but sm is not running, so uses root..
then sm cannot delete them, and gets stuck .
change external motion to use the script file permissions owner (set at git clone time) instead