Martchus
0ab21657c4
Mock locating config file for wizard tests to be independent of Qt's behavior
...
Maybe overriding `HOME` is not sufficient for faking a different home dir
to be picked up by `QStandardPaths`. So this change makes
`LIB_SYNCTHING_CONNECTOR_SYNCTHING_CONFIG_DIR` a hard override and uses it
in tests to fake a different path independently from the behavior of
`QStandardPaths`.
2022-11-03 21:35:03 +01:00
Martchus
2b5c8b6059
Use `qEnvironmentVariable` via compat header from qtutilities
2022-10-29 21:39:43 +02:00
Martchus
8e484f246e
Allow overriding Syncthing config dir via environment variable
2022-10-23 15:05:47 +02:00
Martchus
4f58b2cb7e
Fix determining whether GUI address is local
...
The port must be stripped from the address before passing it to
`isLocal()` which only expects a hostname.
2022-09-25 22:40:37 +02:00
Martchus
3320f712db
Fix condition when making Syncthing URL
...
TLS is preferred when the address is *not* local.
2022-09-25 22:13:44 +02:00
Chih-Hsuan Yen
a92ec9e546
Add the default config path on macOS
2019-07-18 11:07:37 +08:00
Martchus
c031440c05
Use isLocal() in SyncthingConfig::syncthingUrl()
2018-10-10 22:47:03 +02:00
Martchus
fbdd1b2355
Include consistently with ./
2018-04-08 21:53:23 +02:00
Martchus
732a5fdd8d
Apply clang-format
2017-05-01 03:34:43 +02:00
Martchus
8ed032f3d1
Determine Syncthing URL from config in backend
2017-02-20 18:42:27 +01:00
Martchus
6470038fc7
Refactor to allow sharing backend with other apps
...
Intended for creating command line tool and plasmoid
2016-09-30 23:58:45 +02:00