fix(plugin): align _find_mangohud_log with scoped clear, reset lastLogPath on error

This commit is contained in:
2026-07-13 04:51:29 +08:00
parent 61154dbda3
commit 5759fdbafd
3 changed files with 72 additions and 2 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ exec mangohud "$@"
import time
candidates = []
now = time.time()
for pattern in ["/tmp/*MangoHud*", "/tmp/*.csv", "/tmp/*.log"]:
for pattern in ["/tmp/*MangoHud*"]:
for f in glob.glob(pattern):
if os.path.isdir(f):
continue