Skip to content

Add ui.disable_camera config and gate uStreamer startup on it#175

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-disable-camera-option
Draft

Add ui.disable_camera config and gate uStreamer startup on it#175
Copilot wants to merge 3 commits intomainfrom
copilot/add-disable-camera-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

This adds a disable_camera option under the ui section in cosmos.conf, defaulting to False. When enabled, the ustreamer init script exits without starting the camera streaming service.

  • Config surface

    • Adds ui.disable_camera = False to the default config shipped by config-manager.
    • Registers disable_camera in the config validator so user overrides are accepted and normalized with the existing config flow.
  • uStreamer startup behavior

    • Reads ui.disable_camera via config-manager in the init script.
    • Short-circuits service startup when the setting is True, leaving the service disabled through configuration rather than package/image changes.
  • Implementation shape

    • Keeps the change localized to the existing config-manager and SysV init integration.
    • Preserves current behavior unless the new option is explicitly enabled.
if [ "$(config-manager ui disable_camera)" = "True" ]; then
    echo "Camera disabled in configuration; skipping ustreamer startup."
    exit 0
fi

Copilot AI and others added 3 commits May 9, 2026 11:59
Agent-Logs-Url: https://github.com/OpenCentauri/cosmos/sessions/2b0f9a0b-46c5-4cab-9951-8a86305f0948

Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/cosmos/sessions/2b0f9a0b-46c5-4cab-9951-8a86305f0948

Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/cosmos/sessions/2b0f9a0b-46c5-4cab-9951-8a86305f0948

Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants