From c7dce6a838d187507a8c785eb4682b8a0dfefa42 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sun, 15 Sep 2024 23:00:42 +0530 Subject: [PATCH] TOOLS/gen-mpv-desktop.py: set --no-config when probing protocols Apparently for an user mpv would crash on startup if built with asan and mpv attemps to load mpv-mpris. Just set --no-config so we don't load anything external since this is more correct anyway. --- TOOLS/gen-mpv-desktop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TOOLS/gen-mpv-desktop.py b/TOOLS/gen-mpv-desktop.py index 2b05de1ec4..7bbb33e5be 100755 --- a/TOOLS/gen-mpv-desktop.py +++ b/TOOLS/gen-mpv-desktop.py @@ -31,7 +31,7 @@ if __name__ == "__main__": if not mpv_desktop["X-KDE-Protocols"]: raise ValueError("Missing X-KDE-Protocols entry in mpv.desktop file") - mpv_protocols = check_output([sys.argv[2], "--list-protocols"], encoding="UTF-8") + mpv_protocols = check_output([sys.argv[2], "--no-config", "--list-protocols"], encoding="UTF-8") mpv_protocols = set(line.strip(" :/") for line in mpv_protocols.splitlines() if "://" in line) if len(mpv_protocols) == 0: raise ValueError("Unable to parse any protocols from mpv '--list-protocols'")