Open ardboer opened 7 years ago
Magic Mirror works fine but with this module I need to run it as sudo but when I do DISPLAY=:0 sudo npm start it throws a lot of errors and doesnt work. Can anyone help me run Magic Mirror as sudo so I can use this awesome Swipe module?
put sudo before the DISPLAY=:0 npm as in sudo DISPLAY=:0 npm
sudo DISPLAY=:0 npm
run sudo cp ~/.Xauthority /root/ then DISPLAY=:0 sudo npm start
Magic Mirror works fine but with this module I need to run it as sudo but when I do DISPLAY=:0 sudo npm start it throws a lot of errors and doesnt work. Can anyone help me run Magic Mirror as sudo so I can use this awesome Swipe module?