I found out why the switch station window was giving me trouble when I first started pianobar. Pianobar was saving the last station played to "state" in the config folder. So I made the script check to see if there is a value assigned to the variable and if not then it presents the window, if there is a value I don't have it do anything because the user could switch stations if desired.
I found out why the switch station window was giving me trouble when I first started pianobar. Pianobar was saving the last station played to "state" in the config folder. So I made the script check to see if there is a value assigned to the variable and if not then it presents the window, if there is a value I don't have it do anything because the user could switch stations if desired.