Repository navigation
feat(syncthing): auto open GUI when running Syncthing again without parameters - #10736
Closed
rohitanwar wants to merge 1 commit into
Closed
rohitanwar wants to merge 1 commit into
rohitanwar wants to merge 1 commit into
Conversation
calmh
reviewed
Jun 11, 2026
| slog.Error("Failed to acquire lock", slogutil.Error(err)) | ||
| os.Exit(1) | ||
| } else if !locked { | ||
| if c.openGUIOnLockFailure { |
Member
There was a problem hiding this comment.
We should also verify we can talk to the GUI, so that we don't just mysteriously do nothing and open a broken browser window if there's a stale lockfile, for example.
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Aug 10, 2026
…ing#10727) This is primarily to improve the experience in environments that start Syncthing from a graphical environment, e.g., Windows. When already running, instead of printing an error we open the GUI. If the GUI is not available (but the lockfile indicates we are running), print an error and exit. If --no-browser is given or STNOBROWSER is set, act like before. Closes syncthing#10736.
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Aug 10, 2026
…ing#10727) This is primarily to improve the experience in environments that start Syncthing from a graphical environment, e.g., Windows. When already running, instead of printing an error we open the GUI. If the GUI is not available (but the lockfile indicates we are running), print an error and exit. If --no-browser is given or STNOBROWSER is set, act like before. Closes syncthing#10736. Signed-off-by: Jakob Borg <[email protected]>
pull Bot
pushed a commit
to Stars1233/syncthing
that referenced
this pull request
Aug 11, 2026
…ing#10727) (syncthing#10852) This is primarily to improve the experience in environments that start Syncthing from a graphical environment, e.g., Windows. When already running, instead of printing an error we open the GUI. If the GUI is not available (but the lockfile indicates we are running), print an error and exit. If --no-browser is given or STNOBROWSER is set, act like before. Closes syncthing#10736. Marking as `fix` because this does not deserve to trigger a minor release on its own. --------- Signed-off-by: Jakob Borg <[email protected]>
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.
Purpose
If syncthing is run again without any explicit arguments, it will auto open the browser gui, even if
startBrowser = falsefixes: #10727
Testing
I tested it by setting
startBrowser = falsein my local config and trying out a few cases such as running it twice with or without arguments