diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-10-26 18:27:34 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-10-26 18:27:34 -0500 |
| commit | 334627cd06476df897cf3f3ec02ca70b51b7fec1 (patch) | |
| tree | e8ced369b7631ef46d3043118aac5518dca76d35 /docs/config.md | |
| parent | b2c01f2bfb1b7ae910ee52554a973cad3a71171a (diff) | |
| download | slskd-334627cd06476df897cf3f3ec02ca70b51b7fec1.tar.gz | |
allow one-word scripts
Diffstat (limited to 'docs/config.md')
| -rw-r--r-- | docs/config.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/config.md b/docs/config.md index 74c29b49..4ff884da 100644 --- a/docs/config.md +++ b/docs/config.md @@ -923,7 +923,7 @@ retention: User-defined scripts can be configured to run when application events are raised. Scripts are given a name (useful for troubleshooting!), a list of triggering events, and a `run` command that's used to execute the script. -The `run` command must be at least two words, with the first word identifying the executable to run and the rest of the string being the command and arguments that will be passed to the executable when the script is run. The executable needs to be on the system's PATH, otherwise it must be the fully qualified path to the file on disk. +The `run` command must be at least one word, with the first word identifying the executable to run and the rest of the string being the command and arguments that will be passed to the executable when the script is run. The executable needs to be on the system's PATH, otherwise it must be the fully qualified path to the file on disk. A reserved placeholder value `$DATA` is replaced with the stringified JSON data associated with the event that caused the script to run. It's the responsibility of the script to parse and handle this JSON. |
