Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In support of #102, this implements:
wizardPage_rsync
- an attempt at a functional QWizardPage. Never done this before, almost certainly needs attention. The rest of the GUI has not been modified to create a path to it (I don't know how).import_rclone
- handling of rclone-derived data, comments below.parse_rclone_remote
- tool for reading a remote configuration from an rclone config file. Fairly minimal since, unlike OD, the format is "correct" INI.If an rclone
onedrive
remote is provided, a new config is created (largely reusing code from the "create config" page). The drive_id is taken from rclone. The refresh_token is also taken, since it belongs to the same user, and written to therefresh_token
file. Information on the this rclone feature is here.If an rclone
alias
remote is provided, it is split into the "real remote" (which should be aonedrive
, and is used to populate the import function) and the path that was aliased. The path is then listed in thesync_list
file, which will include only that path in sync. Information on this rclone feature is here. I feel there should be more error handling here, but I'm not sure what failure cases would look like.Decision for maintainers: whether to use the rclone "remote_name" as the new profile's name, or whether to use the user-provided value.
Here is a sample rclone.conf (with realistic, but bogus, values). rclone.conf.txt