Quick question, is it possible to run as non-root for applications, automatically started when the pi is booted?
I'm having performance and memory issues when my pi starts a homebrewn spotify-client on boot.
Performance - I cannot explain why this is different than when running it from a terminal once logged in, but the music lags a second once every 15-30 seconds.
Memory - My offline tracks doesn't get saved from session to session.
This leads me to the question, can I 'fake' a user logging in and starting the app with user-previlegies?
Right now i'm using /etc/rc.local
to run the command /home/pi/spotifyapp &
Everything runs smooth and offline tracks are saved when i start the app by myself after the pi has booted