diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-08 12:20:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-08 12:20:13 +0200 |
commit | c5dec7a56157c71d124dafe191acfe95aa0fd4af (patch) | |
tree | 7ef0752d632221a4ef19ae23cc60fbb4265a0567 /src/VideoPlayer.cpp | |
parent | c71a676edf4ccc583652e1f31c571f3cd898d60e (diff) |
Add --theme option, system_mpv_profile config and press g in matrix to start /encrypt chat immediately
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; |