mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 18:29:45 +02:00
Add --on{start,stop} command line option
The --onstart and --onstop command line options can be used to run a program when the audio playback is about to begin or has ended. Note, that librespot needs executions rights to run the program. Furthermore, the full path needs to be specified, e.g. `/usr/bin/logger`. Executable scripts must begin with a shebang, e.g. `#!/bin/sh`.
This commit is contained in:
parent
f79df63734
commit
1d3c387fed
5 changed files with 44 additions and 0 deletions
|
@ -26,6 +26,7 @@ fn main() {
|
|||
main_helper::add_session_arguments(&mut opts);
|
||||
main_helper::add_authentication_arguments(&mut opts);
|
||||
main_helper::add_player_arguments(&mut opts);
|
||||
main_helper::add_program_arguments(&mut opts);
|
||||
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue