Support batched reads in the glass test's recording hyprctl
The customization runtime test's fake hyprctl did not understand `--batch`, so batched HyprGlass reads fell through to the real compositor (writes were still recorded). It now answers batched getoption requests from the record. The glass probe reports why HyprGlass is unavailable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0e43c47bbb
commit
83a0d155ba
2 files changed
+8
-3
No files matched your search
@@ -76,7 +76,7 @@ def probe():
|
||||
o=get_many(['default_preset','enabled','layers:enabled','layers:namespaces','layers:exclude_namespaces','layers:namespace_presets'])
|
||||
return dict(available=True,preset=o['default_preset'],enabled=bool(o['enabled']),layers=bool(o['layers:enabled']),
|
||||
namespaces=o['layers:namespaces'],exclusions=o['layers:exclude_namespaces'],overrides=o['layers:namespace_presets'])
|
||||
except (OSError,ValueError,subprocess.TimeoutExpired):return dict(available=False)
|
||||
except (OSError,ValueError,subprocess.TimeoutExpired) as error:return dict(available=False,reason=str(error)[:200])
|
||||
|
||||
def dispatch(req):
|
||||
action=req.get('action')
|
||||
|
||||
Reference in new issue
Block a user