From 665c015988ce5a27f48f61ffdc0fc579075f6ddf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Jan 2023 12:18:55 +0100 Subject: Mpv: use custom input.conf even when using use_system_mpv_config=true --- src/VideoPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/VideoPlayer.cpp') diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 4a50f79..8614e94 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -170,6 +170,7 @@ namespace QuickMedia { video_player_filepath = "/usr/bin/quickmedia-video-player"; std::string config_dir = "--config-dir=" + startup_args.resource_root + "mpv"; + std::string input_conf_file = "--input-conf=" + startup_args.resource_root + "mpv/input.conf"; std::vector args; // TODO: Resume playback if the last video played matches the first video played next time QuickMedia is launched @@ -246,6 +247,7 @@ namespace QuickMedia { args.push_back("--config=yes"); args.push_back("--load-scripts=yes"); args.push_back("--osc=yes"); + args.push_back(input_conf_file.c_str()); } else { args.insert(args.end(), { config_dir.c_str(), -- cgit v1.2.3