dupontgu / retro-ipod-spotify-client

The software that powers the sPot: a 4th generation "Click Wheel" iPod with a full Spotify client.
Apache License 2.0
892 stars 90 forks source link

How to add a new option on the menu page #70

Closed XEROxMEXICANO closed 1 year ago

XEROxMEXICANO commented 1 year ago

Where you would usually find playlists, albums, and podcasts I want to make a new one called Pair Audio so when it's clicked it will run subprocess.run(["btaudio-connect"]) which will run a bash command in python that connects my headphones.

My headphones already connect upon boot, But sometimes they don't or they are connected to my phone so I wanted an easy option to connect my headphones. I already have the code displaying the option but can't get it to run when clicked, I have no experience in python just messing around and looking at how the other classes get processed.

Here's what I already got working: pair_head with this code Code_head run_head When I click on it, it freezes the program and I have to restart and it's back to normal. Any ideas?

XEROxMEXICANO commented 1 year ago

Thank you!, I will continue to work on this later, unfortunately I'm busy all morning today.

HannesBro commented 1 year ago

Did you achieve anything concerning the new menu? Unfortunately there is no answer and the question itself is so interesting...