Welcome to Retropie and to this forum.

Thanks for sharing your solution. It would be nice if you'd edit your opening post and add [Solved] before its title.