From 912b783593d9d36b25bcb082859be679b3447758 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 28 Jun 2026 20:43:37 +0800 Subject: [PATCH] fix(plugin): fallback version check with full binary path --- plugins/decky-vault/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/decky-vault/main.py b/plugins/decky-vault/main.py index def7989..220f9ad 100644 --- a/plugins/decky-vault/main.py +++ b/plugins/decky-vault/main.py @@ -173,6 +173,14 @@ class Plugin: # Clean up version string (remove git hash suffix) if version and "-" in version: version = version.split("-")[0] + # Fallback: try with full path if first attempt failed + if version == "unknown" and mangohud_path: + try: + v2 = subprocess.run([mangohud_path, "--version"], capture_output=True, text=True, timeout=5) + if v2.returncode == 0: + version = v2.stdout.strip().split("-")[0] + except: + pass return {"installed": True, "path": mangohud_path, "version": version} else: return {"installed": False, "path": "", "version": ""}