MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_system_headless

Function get_system_headless

webapp_modern.py:4821–4828  ·  view source on GitHub ↗

Expose headless mode flag for UI to hide display-only features.

()

Source from the content-addressed store, hash-verified

4819 except OSError:
4820 return False
4821 return PWN_LAUNCHER_PATH in content
4822
4823
4824# Components a working Ragnar-managed Pwnagotchi install needs. The bool marks
4825# whether the piece is *critical* (a missing critical piece means the install is
4826# broken); non-critical pieces are recommended but Pwnagotchi can still run.
4827_PWN_COMPONENT_SPEC = (
4828 ('repo_dir', '/opt/pwnagotchi clone', True),
4829 ('repo_git', '/opt/pwnagotchi git metadata (needed for updates)', False),
4830 ('service_file', 'pwnagotchi.service unit', True),
4831 ('service_launcher', 'service wired to flag-aware launcher', False),

Callers

nothing calls this directly

Calls 2

safe_boolFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected