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.