MCPcopy Create free account
hub / github.com/callstack/agent-device / detectDisplayServer

Function detectDisplayServer

src/platforms/linux/linux-env.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export type InputTool = 'xdotool' | 'ydotool';
13
14function detectDisplayServer(): DisplayServer {
15 if (process.env['WAYLAND_DISPLAY']) return 'wayland';
16 if (process.env['XDG_SESSION_TYPE'] === 'wayland') return 'wayland';
17 return 'x11';
18}
19
20// ── Cached input tool resolution ───────────────────────────────────────
21

Callers 1

ensureInputToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…