Add --server option to start the Remote API server - #140
Open
martin-gawlita wants to merge 1 commit into
Open
Conversation
martin-gawlita
marked this pull request as ready for review
September 13, 2026 17:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting Open Sound Meter from a login/startup shortcut currently leaves the Remote API server off until someone enables it in the GUI. This adds
--serverso desktop setups that depend on remote measurements can explicitly enable it on each launch.The option calls the existing
remote::Server::setActive(true)after the source list has been assigned and the QML root has loaded successfully. The GUI remains available, including the Server switch. Launches without the option keep the existing behavior, and remote generator control remains separately opt-in.The change also adds Qt's standard
--helpand--versionoptions and documents Windows, macOS and Linux invocations. Application arguments are now processed byQCommandLineParser, so unknown options produce a command-line error.Submitted as a draft for discussion in light of the repository's CONTRIBUTING policy. Would this small, opt-in startup option fit the project's direction?
Validation (2026-09-11, commit
0c6dc19):--helplists--serverand exits 0;--versionexits 0; an unknown flag exits 1.--serveropens TCP 49007, advertises the measurement source through UDP discovery, emits live level messages, and answers a TCPrequestChangedrequest withsourceSettings.macdeployqt; all checks passed. Ad-hoc code-signature verification also passed.git diff --checkpassed.Windows x64 validation (same application source; build automation only in the fork):
windows-2022, and bundled Qt plus the MSVC runtime usingwindeployqtand app-local runtime DLLs. Build run.--serveropens it and returns a valid OSM protocol response to a TCP request, and restarting without arguments closes it again. Passing package/API test run.This is a desktop startup option, not a headless mode or a Windows service implementation.