mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-23 18:33:31 +01:00
feat: protect queued changes at shutdown and sign-out (B66)
While the queue holds changes the drain can send, the daemon holds a logind shutdown inhibitor through systemd-inhibit, so desktops show why a power-off is held up. Parked transient files and changes that need the user never hold it. pdfs sync flush retries failed changes and waits for the queue, exiting 3 when what is left needs the user and 4 on timeout. Signing out, in the app or with pdfs logout, says how many changes are not on Proton Drive yet.
This commit is contained in:
1 parent
2c4c95812f
commit
2b5d6f2436
18 files changed
+3644
-3252
No files matched your search
@@ -11,6 +11,16 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- `pdfs sync flush` waits until every queued change is on Proton Drive, retrying
|
||||
failed ones at once. It exits 3 when what is left needs you and 4 on `--timeout`.
|
||||
- While changes are queued that only this computer has, the daemon holds off a
|
||||
shutdown through logind, and desktops show "Sending N changes to Proton Drive" in
|
||||
their power-off dialog. Changes waiting on you never hold it up (B66).
|
||||
- Signing out, in the app or with `pdfs logout`, says how many changes are not on
|
||||
Proton Drive yet. They stay on this computer and are sent after the next sign-in.
|
||||
|
||||
### Changed
|
||||
|
||||
- Signing in runs through `proton_sdk::login` (proton-sdk 0.12.2), the sequence Proton
|
||||
|
||||
Reference in new issue
Block a user