Repository navigation
[4.0.0] — 2026-11-28
4.0.0 splits the daemon into services that each own their state. The sync engine, the mounted
files, Drive access, the database and the admission of background work each have a crate of
their own (pdfs-sync, pdfs-vfs, pdfs-drive, pdfs-store, pdfs-sched), and the daemon
builds them in pdfs-daemon (see Architecture).
A sync pass now keeps track of what each side owes: it lists only what changed on Proton Drive,
trusts the watcher for the folder on disk, resumes a walk a restart cut short, and records every
effect it sends until the result is in. Small files go up in one request.
Upgrading: the database moves from schema 47 to 52 on first start. 3.10 and older refuse to
open it, so going back to 3.10 means removing the cache and letting it build again. Files in
staging/ and recovery/, and synced folders on disk, are not touched by this. Nothing else
needs doing: configuration, sign-in and synced folders carry over.
Schema: 52. New tables save a mirror folder's walk of Proton Drive (48). A finished walk is
kept, with a list of the folders that changed on Proton Drive since (49). Each mirror folder
counts the deletions it made in the last day (50). Each upload, download or folder a mirror pass
sends is recorded until its result is in (51), and an upload that heard no answer keeps the
digest of what it sent (52).
Added
- Small files go up to Proton Drive in one request. A file whose encrypted size is under
128 KiB, and a new revision of one, is now sent in a single request instead of a draft, its
block and a commit. This covers synced folders and the drive mount. On a test account, a first
sync of 200 small files ran 58% faster, and 50 edits of them 97% faster. Larger files go up in
blocks as before.proton-sdkandproton-drive-rsare now 0.12.7. small_uploadsinconfig.jsonturns off the one-request upload for small files. It is
on by default. Set it tofalseto send every file as a draft, its blocks and a commit, as
before. The service reads it at start. See Configuration.pdfs diagnosticssays which of the daemon's background services are running. If one
ends while the drive is mounted, for example the sync engine after a crash, the journal says
so once, by name, instead of saying nothing until a restart. It also lists the jobs running
in the background, such as a cache check, an import, a folder being pinned or a refresh of
the trash or the photo timeline, and how long each has run.PDFS_INSTANCEruns a second client next to your own. With a name set, the client keeps
its own directories, keyring entry, kernel keys and mountpoint, so a test account can run
alongside the account you use.scripts/live-bench.pyuses it to time one edit, from the
write to the new revision on Proton Drive.pdfs diagnosticslists the sync effects that have not settled. An upload, download,
folder or deletion a synced folder's pass sent and has not heard a success for is listed,
oldest first, with how many times it was sent, how long ago, and its last error. Deletions on
either side are now recorded like the other effects, so one that keeps failing says so in the
journal too. The JSON report has them aseffects.pdfs diagnosticssays how many uploads went up in one request. It counts the uploads
since start that took the one-request path for small files and those that went up in blocks,
with their failures and times. If small files stop taking the one-request path, because
small_uploadsis off or Proton Drive refuses it, this shows it. The JSON report has them as
upload_paths.pdfs diagnosticscounts every call the daemon makes to Proton Drive. Per kind of call it
shows how many were made since start, how many failed, and their total and longest time. The
JSON report has them asdrive_calls.pdfs diagnosticsand the journal say where a sync pass spends its time. Each pass over a
synced folder records how long it took to walk this computer's copy, list Proton Drive, plan
and apply. It also records how many calls to Proton Drive it made of each kind, how long they
took, and which folder on Drive was slowest to list. The trace shows the running pass and the
last pass over each folder, in the journal assync: pass trace(B294).- Files and folders drag out of My files into a file manager, the desktop or any app
that takes files, as the real files under~/ProtonDrive. Dragging a selected row
drags the whole selection. The drag offers a copy only, so a file manager can never
move a file out of the mount, which would delete it from Proton Drive. - Files dragged in from a file manager that is browsing
~/ProtonDriveare copied
inside Proton Drive instead of uploaded again. - Files and folders uploaded in My files, dropped in or picked with Upload Files or
Upload Folder, show in their folder at once, faded, until Proton Drive lists
them. One that never arrives (a failed upload) goes once nothing is transferring
any more.
Changed
- The tray has its own icons. They are the app's folder, solid when everything is up to date,
with a badge for syncing, paused, a failing change or an expired sign-in, and hollow when
offline or stopped. They used to be stock icons from the desktop theme. They take the panel's
text colour like other tray icons, and the packages install them into the hicolor theme. - An upload into a folder and an edit of a synced file make fewer requests. The key that
hashes a folder's file names is now read once per folder, not once per upload. A synced
folder no longer reads a file again before it sends an edit. It checks that nobody else
changed the file through the read the upload already makes, and it still sends nothing over
a revision it has not seen.proton-sdkandproton-drive-rsare now 0.12.8. - A sync pass over a quiet folder no longer reads the whole folder on disk. While the
filesystem watcher has been running without a break, a pass reads again only the folders and
files it reported changed, and takes the rest from the pass before. The whole folder is still
read at least once an hour, after a start, after a pass that downloaded or removed files, and
whenever the watcher may have lost a change.pdfs diagnosticsshows how many paths a pass
took over aslocal reused. - Deletions in a mirror folder add up across passes. A sync pass already refuses to delete
nearly every file of a folder at once. Now a folder lost a little at a time is stopped too:
once nine in ten of its synced files would have been deleted within a day, on either side,
the pass is refused and the folder shows the error. Emptying one large subfolder of a healthy
folder still goes through. - A sync pass over a large folder picks up where a restart stopped it. A pass lists the
folder on Proton Drive before it changes anything, and on a folder of hundreds of thousands
of files that takes hours. A restart used to throw the listing away, so a large enough folder
never finished syncing. Each listing is now saved as it comes in, and the next pass lists only
the folders that are left. A saved listing is dropped whenever what it was read against
changes (B294). - A sync pass lists only the folders that changed on Proton Drive. Every pass used to list
the whole folder on Proton Drive to find a few changes, so its cost grew with the size of the
folder. Now the last full listing is kept. The daemon already follows Proton Drive's change
feed, and it marks the folders each change touches. A pass lists those folders again and
takes the rest from the kept listing. A change made on another device also starts a pass at
once, instead of at the next two-minute poll. A full listing still runs once a day, on the
first pass, and whenever the change feed lost track (#53).
Fixed
- A file renamed just as it reached Proton Drive keeps its new name. If the rename landed
while the app was reading the new file back, the folder could show the old name again, and a
later rename over the new name waited and then failed (B309). - A write right after another can no longer bring back old bytes or cut the file short. When
an upload landed just as the next edit to the same file was queued, the file could keep the
size of the upload that landed. A write opened next then started at that size, not the queued
edit's. If the landed size was larger, a gap the write left past the edit was filled from the
older revision instead of zeros. If it was smaller, the file was cut at that size. Seen in
the echoes simulation about once in 40 runs under CPU load (B308). - A file kept offline and then deleted can be made online only again. Deleting or trashing a
file left its entry under Settings → Storage → Available offline, and making it online only
failed with "could not resolve", because its path no longer led anywhere. Deleting a file now
drops the entry with it, and an entry already left behind is removed by the path it is listed
under. The app also stops asking for that file's thumbnail every second. - A share can be stopped from Shared by me when its file was never opened here. Stopping the
share, or changing its people or link, failed with "node is not present in any location" for a
file in a folder this computer had not loaded. Drive's own list of what you shared now counts as
proof that the file is yours. - Stopping a sync with "Also delete from Proton Drive" says that it deletes, and says so when
the deletion failed. With the switch on, the dialog now reads "Stop Syncing and Delete
Folder?" and its button "Stop Syncing and Delete". If the folder stopped syncing but its folder
in Proton Drive could not be moved to the trash, for example while offline, the app and
pdfs sync rm --delete-remotenow report an error that says so. Before, they reported plain
success, and the copy in Proton Drive stayed without a word. - Discarding a queued change lists every change it undoes. A discard drops every change
queued on the same file or folder, but the dialog spoke of one change. It now lists them all,
says whether the item goes back to how Proton Drive has it or is removed from this computer,
and offers "Export My Version…" when the change carries file content. - A file or folder changed just as its upload finishes is no longer refused with "Permission
denied". For a moment after Proton Drive took a new file or folder, the mount could find no
record of it and refused the change: a write was kept in staging instead of being sent, and a
folder made inside a new folder failed. The check now reads the database in one consistent
view. - The Trash page acts on what is selected, and says so when it cannot. Inside a trashed
folder, its items went to the trash with it, and only the folder can be restored. Restore now
reads "Restore Folder “Projects”" there. Delete Permanently, from the bar or the
Delete key, no longer deletes the whole folder for a selected item inside it. It explains that
only the whole folder can be deleted, from the top of the trash. Restore on a row that groups
the items deleted from one folder now shows how many items it restores. - Stopping sharing or leaving several items says which ones did not go through. The app
sent one request per item and stopped at the first failure, with a generic error, so the items
before it had already stopped sharing and the ones after it were never tried. Now every item is
tried. If any did not go through, a summary names it, with the reason or "not tried yet", and
offers to try only those again. If the service stopped answering, the page is reloaded first,
so it shows which items really changed. - Sign Out says what it could not finish.
- If the service did not answer, the confirmation no longer reads as if no changes were waiting.
It says that this is not known. - If your sign-in could not be removed from the keyring, a dialog says so and offers to try
again. Before, the sign-in page appeared while the sign-in was still saved. - If Proton did not confirm that the session ended, a notice says where in your Proton account
you can end it.
- If the service did not answer, the confirmation no longer reads as if no changes were waiting.
- A public link's settings change only when you save them. Before, choosing Editor changed
the link at once, so anyone holding a viewer link could edit before the password you were about
to add was set. Removing the password also took effect at once. Now the role, the password and
the expiry are sent together by "Save Link Settings". Above that button is a line that says how
the link will work. Closing the dialog sends nothing. When you create a link, Enter in the
password field moves on to Expires instead of creating the link. - The Share dialog no longer shows a public link's address until you ask. The row is titled by
what the link does, for example "Public viewer link", with how it works below. The eye button
shows the address, and reopening the dialog hides it again. An expired link offers no Copy;
"Edit Expiry" opens its settings instead. In Shared by me, an expired link's menu leads with
"Edit Link Expiry…". - Find Similar Photos counts files as well as photos. A shot stored as a RAW and a JPEG moves
both to Trash. The footer now reads, for example, "Move 1 photo (2 files) to Trash", and each
card shows what its shot is stored as, such as "RAW + 1 more file". Each card says whether the
photo stays or moves to Trash, and each set's heading says how many of the set stay. A set wider
than the window still shows what happens to it. - The search window shows recent Drive files only to the account that opened them. Before, an
empty search listed the last files opened from any account signed in on this computer. Now
each Drive file is remembered with its account. Recent Drive files from before this change are
no longer shown, because nobody can say whose they are. Preferences → Apps adds "Remember
recent files" and "Clear recent files", and a clear takes effect the next time the window
opens. See Configuration forremember_recent. - Dragging onto a folder in Files says what the drop will do. A label over the view reads, for
example, "Move 3 items to “Receipts”" for rows dragged within the app, and "Copy 3 items to
“Receipts”" for files dragged from a file manager browsing the drive. Files from elsewhere read
"Upload…". It also says how many items can't go there, such as the folder itself in a
selection. - A mirrored file whose upload went unanswered no longer gets a conflict copy of its own
edit. Proton Drive can make a file and lose the answer. If the file was then written again
before the next sync, for example while the daemon was stopped, that sync saw two different
files under one name. It kept this computer's newer edit as a conflict copy next to its own
first upload. Now an upload that hears no answer keeps the digest of the bytes it sent. When
Proton Drive holds exactly those bytes, the newer edit goes up as a new version of that file. - A stop ends the loops that follow Proton Drive's change feed before the daemon exits.
The loops that read the Drive and photos event streams, and the gallery refresh, kept
running after every other service had stopped, and could still write to the database while
the process exited. - A synced folder whose folder on Drive is in the trash no longer blocks attaching another.
Until it was removed, everypdfs sync attachfailed with "remote sync folder is in the trash",
whatever folder it named (B299). - An edit in a synced folder whose upload lost its answer is no longer kept as a conflict copy
of itself. When the file on Drive has the same size and content as the local one, the
next sync records it as in step instead (B298). - A busy database no longer stalls reads or piles up threads. A read that cannot get its own
connection fails instead of waiting behind a long write.pdfs diagnosticsreports the
number of queued operations as unknown when the database does not answer in time, and no
longer starts a new thread for every report while it waits (B296). - Files dragged in from a file manager on Wayland upload. The compositor offers
such a drag as a move at first, and My files, answering only to a copy, refused
it without a word. It now asks for a copy, which the compositor then picks. - Files dropped from a file manager onto a row of My files no longer fail: dropped
onto a folder they upload into that folder, and dropped onto a file they upload
into the folder on screen, as a drop onto empty space always did. Moving rows
onto a folder inside the app works as before, and now takes the whole selection. - A cold mount whose account keys cannot open My Files waits for Retry or a fresh sign-in (#40).
- Sign-in failures with Proton code 2028 now give consistent recovery guidance in the desktop app and CLI (#39).