Skip to content

Commit 1d1c4f4

Browse files
fix(autostart): remove --no-console from Windows instructions
With the advent of Windows Terminal and it being the default shell both in newer releases of Windows 10, and in Windows 11, the `--no-console` command line switch no longer works. For this reason, remove it from the commands listed in the autostart instructions. When it comes to the Task Scheduler part, it has never actually been needed anyway, and in the Startup folder instructions, it can be worked around by using the native `conhost.exe --headless` method. Signed-off-by: Tomasz Wilczyński <[email protected]> Co-authored-by: Rafael Ledo <[email protected]>
1 parent 70f34c3 commit 1d1c4f4

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

users/autostart.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ https://docs.microsoft.com/windows/win32/taskschd.
9090
#. Click "New...".
9191
#. Enter the path to ``syncthing.exe`` in "Program/script:" (for
9292
example ``C:\syncthing\syncthing.exe``).
93-
#. Enter ``--no-console --no-browser`` in "Add arguments (optional):"
93+
#. Enter ``--no-browser`` in "Add arguments (optional):"
9494
#. Click "OK".
9595

9696
|Windows Task Scheduler Actions Screenshot|
@@ -163,8 +163,8 @@ opening on start, is relatively easy.
163163
|Windows Startup Folder New Shortcut Screenshot|
164164

165165
#. Enter the path to ``syncthing.exe`` in "Type the location of the item:"
166-
followed by ``--no-console --no-browser`` (for example ``C:\syncthing\syncthing.exe
167-
--no-console --no-browser``).
166+
into the command ``conhost.exe --headless syncthing.exe --no-browser``
167+
(for example ``conhost.exe --headless C:\syncthing\syncthing.exe --no-browser``).
168168

169169
|Windows Startup Folder Create Shortcut Screenshot|
170170

@@ -176,6 +176,13 @@ user account in Windows. No console or browser window will pop-up, but
176176
you can still access the interface by opening http://localhost:8384 in
177177
a Web browser.
178178

179+
.. note::
180+
181+
It used to be possible to start Syncthing with its console window hidden by
182+
using the `--no-console` option. However, this method no longer works in
183+
newer versions of Windows that have Windows Terminal set as their default
184+
shell. For this reason, using `--no-console` is no longer recommended here.
185+
179186
.. _autostart-windows-tools:
180187

181188
Install and run using third-party tools

users/windows-nssm-config.png

-5.64 KB
Loading
-633 Bytes
Loading
-6.41 KB
Loading

users/windows-taskschd-actions.png

1.12 KB
Loading

0 commit comments

Comments
 (0)