Martchus
2d6ca44aa5
Document issues in LibSyncthing::{stop,restart}Syncthing()
2018-04-18 23:28:45 +02:00
Martchus
0d635e5ad5
Refactor launcher
...
* Pass program and arguments directly
* Prevent failure on white space in executable path
* Use own parser for arguments
* Make libsyncthing accessible from launcher
2018-04-18 23:27:45 +02:00
Martchus
a36bc4524b
Fix running and stopping libsyncthing multiple times
2018-04-18 00:40:07 +02:00
Martchus
6d7c876553
Clean database before restarting in libsyncthing tests
2018-04-18 00:15:31 +02:00
Martchus
fbbf533a37
Allow passing raw CLI arguments in libsyncthing interface
2018-04-17 23:54:43 +02:00
Martchus
f7dc8c93bd
Ensure Syncthing doesn't try to upgrade during tests
2018-04-17 23:52:20 +02:00
Martchus
28eacb61a4
Verify whether Syncthing started via libsyncthing is stopped correctly
...
This is currently not the case so the tests fail now.
Need to investigate how to stop Syncthing correctly.
2018-04-17 23:50:45 +02:00
Martchus
c7418431f5
Use new libsyncthing interface in launcher
...
Not tested yet
2018-04-15 20:20:30 +02:00
Martchus
6c1c95c4c5
Improve libsyncthing
...
* Add documentaton
* Add isSyncthingRunning()
2018-04-15 20:19:14 +02:00
Martchus
aedf7fe1fd
Improve libsyncthing interface
...
* Allow to stop
* Provide callback for logging
* Add basic tests
2018-04-14 23:07:35 +02:00
Martchus
2b1c993a64
Handle systemd service state change in Plasmoid
...
Previously only the initial service state was considered.
After refactoring the SyncthingService initialization the
state is not known when the Plasmoid is initialized so
this limitation became obvious and had to be fixed.
2018-04-12 23:16:51 +02:00
Martchus
b7dbd2c72b
Fix build without libsyncthing
2018-04-12 16:14:09 +02:00
Martchus
0ceb8d5e79
Add high-level abstraction for launching Syncthing
...
Add new SyncthingLauncher class which lauches Syncthing
under the hood via external SyncthingProcess or using
libsyncthing.
Note: Launching via libsyncthing is still experimental.
2018-04-11 23:16:00 +02:00
Martchus
278ba521d9
Fix warning for SYNCTHING_CONNECTION_LOG_SYNCTHING_EVENTS
2018-04-11 23:13:02 +02:00
Martchus
e2d3bdfa0d
Ensure index for libsyncthinginternal.a is created
2018-04-10 23:00:05 +02:00
Martchus
4e112547e1
Handle cross-compilation when building libsyncthing
2018-04-10 22:55:17 +02:00
Martchus
d08aa005d7
Fix compilation without systemd support
2018-04-10 21:05:49 +02:00
Martchus
fbdd1b2355
Include consistently with ./
2018-04-08 21:53:23 +02:00
Martchus
6ab7662a64
Add experimental 'libsyncthing'
...
* This allows running C++ GUI code (as provided by this
repository) and Syncthing itself in the same process.
* It basically seems to work. I can now run a Syncthing
instance within the interactive C++ shell 'cling' :-)
* Syncthing and its assets are built within the usual
CMake build process but disabled by default because still
experimental. To enable the build, add '-DNO_LIBSYNCTHING=OFF'
to CMake arguments.
* The Syncthing checkout with customized exports lives
in the Git submodule under
'libsyncthing/go/src/github.com/syncthing/syncthing'.
2018-04-08 21:36:08 +02:00
Martchus
37e24ccfb7
Use QStringLiteral in Application::editConfigViaScript()
2018-04-08 13:03:05 +02:00
Martchus
68c9f27e2a
Add helper for changing config via JavaScript
2018-04-07 22:57:36 +02:00
Martchus
5726bab292
Allow specifying script lines via CLI args
2018-04-07 22:28:21 +02:00
Martchus
ec131f297f
Remove comments in example JavaScript
2018-04-07 22:09:44 +02:00
Martchus
b61592fbbd
Allow editing Syncthing config via JavaScript
2018-04-07 22:01:54 +02:00
Martchus
bf4b26c6f8
Perform at least some checks before sending config
2018-04-07 18:30:35 +02:00
Martchus
b92bf4f27a
Add dry-run for syncthingctl edit
2018-04-07 18:30:14 +02:00
Martchus
a805de8a21
Fix typo in German translation
2018-04-04 20:22:12 +02:00
Martchus
c94b34595b
Improve properties of SyncthingConnection
2018-04-04 20:18:42 +02:00
Martchus
6d155d3d63
Make considering launcher for reconnects configurable
...
Similar to the systemd configuration
2018-04-03 00:11:55 +02:00
Martchus
0c104f60b8
Wait till all processes finished, ask for killing
...
See https://github.com/Martchus/syncthingtray/issues/15
2018-04-02 23:32:52 +02:00
Martchus
f9305819a7
Update translations
2018-04-02 21:26:05 +02:00
Martchus
ce7a4421fa
Consider isActiveFor() for process also when systemd unavailable
2018-04-02 20:52:50 +02:00
Martchus
146d4870e4
Refactor preventing unwanted error messages
...
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
Martchus
b81c316d4a
Improve message formatting in SingleInstance
2018-04-02 20:23:54 +02:00
Martchus
ad98bfbc22
Improve syncthingctl log
2018-04-02 12:48:27 +02:00
Martchus
c04fb96634
Update README.md
2018-04-01 23:26:29 +02:00
Martchus
8532fbcb57
Specify min. Qt 5 version for fileitemaction and plasmomid
2018-04-01 23:02:14 +02:00
Martchus
c7ea5974e4
Allow editing config via syncthingctl
2018-04-01 23:01:37 +02:00
Martchus
ac36e6955d
Improve coding style in syncthingctl
2018-04-01 22:34:15 +02:00
Martchus
754cd0c2e1
Allow printing current config
2018-04-01 20:21:51 +02:00
Martchus
e9e85e6ba9
Update translations
2018-03-31 22:36:31 +02:00
Martchus
d2eb4addd9
Distinguish between local an remote sync in settings
2018-03-31 22:31:28 +02:00
Martchus
023279142b
Fix "sync complete" notifications during upload
...
* Distinguish between local and remote FolderCompletion events
* Do not request completion via REST-API, the FolderCompletion
event covers both - local and remote changes.
2018-03-31 22:07:05 +02:00
Martchus
bfd51fcaff
Refactor SyncthingConnection::readDirEvent()
2018-03-31 21:19:53 +02:00
Martchus
d74738a8a4
Enable event logging for debugging purposes
2018-03-31 19:48:27 +02:00
Martchus
6828e96b53
Improve sync complete notifications
...
* Also consider remote updates
* Still massive notifications when uploading
about local folder completed
2018-03-29 00:38:21 +02:00
Martchus
e6642245df
Improve coding style in SyncthingConnectionSettings::loadHttpsCert()
2018-03-29 00:36:42 +02:00
Martchus
419e2971c1
plasmoid: Add context menu for top-level list views
...
Might be useful to add further actions because the
space for buttons is limited.
2018-03-26 22:56:55 +02:00
Martchus
c1efb690ef
Update translations
2018-03-24 17:06:47 +01:00
Martchus
b12988e342
Apply clang-format from LLVM 6
2018-03-24 17:06:16 +01:00