So I was having a permissions problem earlier and was going through different methods to try and solve it. Ultimately I solved the issue, but now the buttons in my Kivy app no longer work when pressed on the touchscreen when I run the app with 'sudo python'. If I run the app with just 'python' the buttons work as normal. I suspect that I fudged up some permissions or ownership somewhere along the line that is not giving root all of the necessary things it needs to make kivy buttons work.
I used chown -R pi /home/pi & chmod -R u+rwX /home/pi earlier and I thought this may be a problem so I tried chown -R root /home/pi, but it didn't make a difference. I couldn't even import the kivy module without adding a line in /etc/sudoers:
Defaults env_keep += "PYTHONPATH"
The app runs when using sudo, just no button functionality. Is there a way to fix this without having to reinstall everything?
Thanks for your time!