kpcyrd / spotify-launcher

Client for spotify's apt repository in Rust for Arch Linux
Other
198 stars 15 forks source link

Allow signal handling when running from CLI #61

Open victordejong opened 1 month ago

victordejong commented 1 month ago

This PR introduces a new structure when running the Spotify child process, allowing signal handling when running from the command line. This commit specifically adds the feature to properly exit when issuing a SIGINT (Ctrl+C) from the command line.

This PR resolves #63.

Any suggestions to simplify and/or improve this code are welcome.