Skip to content

Gridsync parses stdout in order to determine the Magic-Folder API client endpoint #412

@crwood

Description

@crwood

Presently, Gridsync resorts to parsing the magic-folder process's stdout for a "Site starting on" string in order to determine the current listening port for the Magic-Folder API endpoint. This is somewhat hack-ish, however, and should not be considered a reliable or stable interface. Thankfully, Magic-Folder recently added the API client endpoint to the output of show-config, thereby allowing clients like Gridsync to acquire all of the information needed to connect to the Magic-Folder API from the output of a single command (which, in this case, Gridsync happens to already calls in order to get the Magic-Folder API token). Gridsync should stop parsing stdout in order to determine the Magic-Folder listening port and switch to using the newly-added (and, presumably, actually supported) show-config method instead -- or some other, equally reliable and stable method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions