canton7 / SyncTrayzor

Windows tray utility / filesystem watcher / launcher for Syncthing
MIT License
5.98k stars 412 forks source link

Starting SyncTrayzor as a service before user login - console not accessible #779

Open Salamimonster opened 1 year ago

Salamimonster commented 1 year ago

SyncTrayzor.exe 1.1.29.0

Thank you for the handy tool. I especially like the notifications about "conflicted" files. Really cool job!

My issue: Sync must be started up after starting my PC. Even if no user is logged in and only the PC is booted.

Before SyncTrayzor, I was used to start Syncthing "as a service" by using the task scheduler. I set up a task, that starts Syncthing.exe (--no-console --no-browser) at system start. It uses my users credentials. And everything worked good.

Now I changed the taskt to start up SyncTrayzor.exe instead of Syncthing.exe. Also using my user credentials. It works kind of, as it starts SyncTrayzor.exe and syncthing.exe, ... but no tray icon shows up. grafik

If I then manually start SyncTrayzor.exe it states:

If "FATAL: Cannot open database" appears, please close any other open instances of Syncthing.....

How to set up SyncTrayzor as a "service"?