I’m building synchronization features in Electron by calling the Syncthing service. On Windows, I successfully used execFile with PowerShell to launch Syncthing with the --no-console flag. However, on macOS, when I use spawn to manage the process with --no-console, Syncthing starts but immediately crashes. Removing --no-console resolves the issue. This problem persisted with version 1.3.0, and it took me significant time to identify --no-console as the cause. Here’s my code:
--no-console is a Windows-only option.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


