From dc2a3effa86db9f1a1891919c278ac91d1ccc7f7 Mon Sep 17 00:00:00 2001 From: Ryze <ryze@noreply.code.thishorsie.rocks> Date: Thu, 27 Mar 2025 00:31:36 +0300 Subject: [PATCH] Update README and config to mention use of -- --- README.md | 4 +++- ff2mpv-rust.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f9aca98..3349149 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,9 @@ On Linux configuration file is searched in such order: On Windows configuration file should be placed at: %APPDATA%/ff2mpv-rust.json. -See [example configuration](ff2mpv-rust.json). +See [default configuration](ff2mpv-rust.json). +Note that default configuration passes `--` as last argument in order to prevent argument injection. +When editing you should either keep it or use a similar argument for the player you want to use. # Command line interface ff2mpv-rust provides command line interface with following commands: diff --git a/ff2mpv-rust.json b/ff2mpv-rust.json index aed2b9d..f33a675 100644 --- a/ff2mpv-rust.json +++ b/ff2mpv-rust.json @@ -1,4 +1,4 @@ { "player_command": "mpv", - "player_args": ["--no-config", "--fullscreen"] + "player_args": ["--no-terminal", "--"] }