syncthingtray/tray/application
Martchus 884ead9760 Improve startup code further to fix problems showing expecially on Windows
* Avoid overriding argv/argc via `CMD_UTILS_CONVERT_ARGS_TO_UTF8` in
  Windows-specific code when processing arguments from a 2nd instance
* Move the other startup code to main as well as they are not needed when
  processing arguments from a 2nd instance
* Improve debug logging
* Use `waitForBytesWritten()` instead of `flush()` when passing args as
  recommended by the documentation
* Avoid use of `bytesAvailable()` as it doesn't work as expected in this
  situation on Windows (likely it doesn't really work reliably on all
  platforms); calling `readAll()` works and is simpler anyways
* Tested that `--replace` works as well; also the
  `waitUntilGone && QFile::exists(fullServerName)` block is entered and if
  the previous instance is taking some time it really waits until it is
  gone
2023-05-01 21:10:09 +02:00
..
main.cpp Improve startup code further to fix problems showing expecially on Windows 2023-05-01 21:10:09 +02:00
singleinstance.cpp Improve startup code further to fix problems showing expecially on Windows 2023-05-01 21:10:09 +02:00
singleinstance.h Improve startup/shutdown behavior; add `--replace` CLI option 2023-04-29 21:07:30 +02:00