From c5dec7a56157c71d124dafe191acfe95aa0fd4af Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 8 Jun 2025 12:20:13 +0200 Subject: Add --theme option, system_mpv_profile config and press g in matrix to start /encrypt chat immediately --- src/VideoPlayer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/VideoPlayer.cpp') diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 3aa4eca..0fac7aa 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -256,12 +256,16 @@ namespace QuickMedia { if(get_file_type(mpris_path) == FileType::REGULAR) mpris_arg = "--scripts=" + mpris_path.data; + std::string profile_arg; if(startup_args.use_system_mpv_config) { args.push_back("--config=yes"); args.push_back("--load-scripts=yes"); args.push_back("--osc=yes"); args.push_back(input_conf_file.c_str()); args.push_back(ytdl_hook_file.c_str()); + + if(!startup_args.system_mpv_profile.empty()) + profile_arg = "--profile=" + startup_args.system_mpv_profile; } else { args.insert(args.end(), { config_dir.c_str(), @@ -272,6 +276,9 @@ namespace QuickMedia { args.push_back(mpris_arg.c_str()); } + if(!profile_arg.empty()) + args.push_back(profile_arg.c_str()); + std::string force_media_title_arg; if(!startup_args.title.empty()) { force_media_title_arg = "--force-media-title=" + startup_args.title; -- cgit v1.2.3-70-g09d2