#!/usr/bin/env python3 """Opt-in live Hyprland dock test. Uses temporary preferences and disposable windows.""" import json import os from pathlib import Path import subprocess import tempfile import time ROOT=Path(__file__).resolve().parents[1] BASE=['quickshell','ipc','--path',str(ROOT/'quickshell'),'call'] FIXTURE=ROOT/'tests/dock-fixture' IDENT='org.glassMxrph.DockFixture' OTHER=IDENT+'Other' def ipc(target,method,*args): result=subprocess.run(BASE+[target,method,*map(str,args)],capture_output=True,text=True) return json.loads(result.stdout) if result.returncode==0 and result.stdout.strip() else None def eventually(check,label,timeout=8): end=time.monotonic()+timeout while time.monotonic()