diff --git a/Raspberry_Pi_NFC_Movie_Player/nfc_movie_player.py b/Raspberry_Pi_NFC_Movie_Player/nfc_movie_player.py index 196b0cba9..1857b3192 100644 --- a/Raspberry_Pi_NFC_Movie_Player/nfc_movie_player.py +++ b/Raspberry_Pi_NFC_Movie_Player/nfc_movie_player.py @@ -96,7 +96,7 @@ def read_card(): movie_name = get_movie(title) if movie_path: video = f"{movie_path}/{movie_name}.mp4" - subprocess.run(["sudo", "-u", "adafruit", "vlc", "--fullscreen", video], check=False) + subprocess.run(["sudo", "-u", username, "vlc", "--fullscreen", video], check=False) now_playing = True else: current_time = datetime.now().strftime("%I:%M %p")