jastBytes / SyncthingTray

Syncthing wrapper for Windows. Includes a small interface to configure start on boot and puts syncthing into tray instead of the console window.
GNU General Public License v2.0
151 stars 24 forks source link

SyncthingTray only starts after Syncthing's configuration has been created #25

Open quantum5 opened 9 years ago

quantum5 commented 9 years ago

When I compiled the master branch (44b45e66363469c535e6b02ec73296a97ab9a427), this error happens on startup:

The problem seems to be in SyncthingConfig.cs, where the following line fails to handle the null case for ConfigPath:

Watcher = new FileSystemWatcher(Path.GetDirectoryName(ConfigPath))

This goes away immediately after downloading and running syncthing.exe manually.

yesrod commented 9 years ago

Had the same issue, can confirm the pull request from this issue fixed the problem.