Skip to content

feat(syncthing): auto open GUI when running Syncthing again without parameters - #10736

Closed
rohitanwar wants to merge 1 commit into
syncthing:mainfrom
rohitanwar:fix/10727_open_gui_on_running_twice_without_parameters
Closed

rohitanwar wants to merge 1 commit into
syncthing:mainfrom
rohitanwar:fix/10727_open_gui_on_running_twice_without_parameters

Conversation

@rohitanwar

@rohitanwar rohitanwar commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

If syncthing is run again without any explicit arguments, it will auto open the browser gui, even if startBrowser = false
fixes: #10727

Testing

I tested it by setting startBrowser = false in my local config and trying out a few cases such as running it twice with or without arguments

@github-actions github-actions Bot added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Jun 7, 2026
@rohitanwar rohitanwar changed the title fix: auto open gui when running syncthing again without commands fix: auto open gui when running syncthing again without parameters Jun 7, 2026
@marbens-arch marbens-arch changed the title fix: auto open gui when running syncthing again without parameters feat(main): auto open gui when running syncthing again without parameters Jun 7, 2026
@github-actions github-actions Bot added enhancement New features or improvements of some kind, as opposed to a problem (bug) and removed bug A problem with current functionality, as opposed to missing functionality (enhancement) labels Jun 7, 2026
@marbens-arch marbens-arch changed the title feat(main): auto open gui when running syncthing again without parameters feat(syncthing): auto open gui when running syncthing again without parameters Jun 7, 2026
Comment thread cmd/syncthing/main.go
slog.Error("Failed to acquire lock", slogutil.Error(err))
os.Exit(1)
} else if !locked {
if c.openGUIOnLockFailure {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tomasz1986 tomasz1986 changed the title feat(syncthing): auto open gui when running syncthing again without parameters feat(syncthing): auto open GUI when running Syncthing again without parameters Jun 11, 2026

@calmh calmh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the above)

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]>
@calmh calmh closed this in #10852 Aug 11, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features or improvements of some kind, as opposed to a problem (bug)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running Syncthing again without parameters should open GUI

3 participants