Commit Graph

17 Commits

Author SHA1 Message Date
Martchus cfc091d4fb Keep fallback to config directory if no data directory is configured for libsyncthing 2024-03-09 11:51:33 +01:00
Martchus 9ed9f94040 Fix setting data directory when starting libsyncthing
See https://github.com/Martchus/syncthingtray/issues/237
2024-03-09 11:37:43 +01:00
Martchus 211a7942ef Apply clang-format 2024-02-17 18:11:58 +01:00
Martchus 274a220c2c Log available network information backends in the error case 2024-02-17 02:06:38 +01:00
Martchus f4aa2b22ce Avoid starting Syncthing unintentionally when connection not metered anymore 2024-02-17 00:04:19 +01:00
Martchus 3b8d4f3d89 Fix crash when network information cannot be loaded 2024-02-16 20:03:51 +01:00
Martchus 643f0bf5ff Fix initialization of `m_relevantConnection` 2024-02-15 22:22:18 +01:00
Martchus 30fa37f048 Allow to pause automatically on metered network connections
* Allow to pause all devices on metered network connections (devices will
  be automatically resumed when network is no longer metered)
* Allow to stop Syncthing when it was started via the built-in launcher
  on metered network connections (it will be automatically started again
  when the network connection is no longer metered)
* See https://github.com/Martchus/syncthingtray/issues/231
2024-02-15 21:02:18 +01:00
Martchus 4e61f77932 Fix guiUrl property of SyncthingLauncher 2023-11-01 21:16:04 +01:00
John Veness c2a0eee029 Change Directory to Folder in user-facing strings 2023-09-17 19:33:31 +01:00
Martchus 218037a951 Fix compilation without systemd support 2023-07-04 20:01:12 +02:00
Martchus 13730ab933 Ignore "Forbidden" errors shortly after Syncthing start
Not sure why I'm getting

```
Fehler beim Abfragen der Syncthing-Konfiguration: Error transferring http://127.0.0.1:8384/rest/system/config - server replied: Forbidden
URL der Anfrage: http://127.0.0.1:8384/rest/system/config
```

one one of my setups but this kind of error can likely be ignored shortly
after the start similar to other types of errors.
2023-06-30 12:43:06 +02:00
Martchus 091ec35580 Stop built-in Syncthing instance synchronously
So `Launcher::terminate()` exits when really everything has terminated and
not just sub processes. It may nevertheless be worthwhile to implement a
timeout.

This may help with
https://github.com/Martchus/syncthingtray/issues/180#issuecomment-1582465960.
2023-06-09 13:13:55 +02:00
Martchus 1c9e9affe3 Format code in `InternalError::isRelevant()` according to current coding style 2023-04-04 17:14:16 +02:00
Martchus 4fb50526bd Suppress "connection refused" errors when stopping Syncthing ourselves
When stopping the Syncthing service ourselves we can apparently also
get "connection refused" and not just "remote host closed". So this
kind of error should be supressed as well.
2023-04-04 17:13:27 +02:00
Martchus db657bb1aa Use QByteArrayLiteral for such literals 2023-03-28 17:20:59 +02:00
Martchus 96e92f13a3 Avoid relying on symlink for include directories
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00