r/ProtonDrive • • 22h ago

Files integration on iOS: progress update

59 Upvotes

Jan here, I work on the iOS app. A lot of you have asked how bringing back the Files integration is going, so here's an update to our earlier deep dive.

Memory: from spiky to steady. Quick recap: iOS shuts down the Files extension once it uses more than roughly 20MB. The old integration was already living close to that line, with spikes that sometimes went above 19MB and over the limit. The first version of the new SDK couldn't run below 25MB at all, so we started further away than we'd have liked.

Some of the optimizations we counted on gave us less room than we expected, and a few turned into deeper surgery than planned. That's where most of the time went. The result is what we were after, though: memory now stays flat during transfers instead of spiking. We're aiming for a steady baseline of around 15MB, which leaves headroom below the limit for short bumps. We're still trimming to get it there reliably.

Rust crypto is rolling out in the Proton Drive app. Swapping out the Go crypto library was the biggest prerequisite from last time, and it's shared beyond Drive, so it had to be done carefully. It's now shipping in the app, so that foundation is in place.

The file operations are already in the SDK. Listing folders, creating, renaming, moving, trashing and restoring items, and tracking remote changes are all there. You can check them in our open-source SDK repository. What's left is connecting the Files integration to them on the iOS side.

The regression tooling is in place. Last time we said we'd build automated memory and performance checks. They're running, so if a change pushes memory back up, we see it before it ships.

The big unknowns are behind us. Last time we couldn't yet say how far the runtime would shrink, whether memory would stay predictable, or how the crypto swap would fit in. We now know all three. What's left is well understood, and it's what we're building now.

Thanks for keeping the questions coming. Our goal is to get a beta into testers' hands around the end of the year. We'll post again when it's ready, and I'm happy to answer technical stuff in the comments.


r/ProtonDrive • • 7h ago

I built an unofficial Linux desktop app for Proton Drive (two-way sync + online-only files in Files), first pre-release

Thumbnail
gallery
28 Upvotes

Like many of you, I've been waiting for a Proton Drive app on Linux, so I built one, with a lot of help from AI coding tools. It's unofficial (not made by or affiliated with Proton) and it's an early pre-release (v0.1.0), so please keep backups of anything important while you try it.

What it does

- Two-way sync between your Proton Drive and a folder on your computer (~/ProtonDrive). When a file changes in both places, it keeps both copies instead of overwriting.

- Online-only files: your whole drive shows up in Files (Nautilus), but files only download when you open them, so it doesn't fill your disk. Right-click to Always keep on this device or Free up space, and status icons show what's local.

- Proton Docs and Sheets appear in the drive and open in your browser.

- Sharing from the right-click menu (links with password and expiry, or invites), plus a Shared with me page to accept invitations and open or download what others shared.

- A small app and tray icon for status, storage, activity and settings.

It uses Proton's open-source Drive SDK, with end-to-end encryption kept the same way as the official apps.

Install: .deb, .rpm, AppImage or a tarball from the release page. The online-only drive needs fuse3. https://github.com/kosidhar/proton-drive/releases/tag/v0.1.0

Source (MIT): https://github.com/kosidhar/proton-drive

Built with a lot of help from AI coding tools.

It's been my daily driver on Ubuntu, but it hasn't seen many other setups yet. I'd love feedback, especially from Fedora, Arch and KDE users. Bug reports are very welcome as GitHub issues.


r/ProtonDrive • • 10h ago

How Can I See Folder Sizes in Drive

2 Upvotes

??
I'm trying to figure out what is using so much space in my Drive, but I can't figure out how to see the size of each folder. Right-clicking on 'Details' has no useful details.

This is driving me nuts, because I'm now going into each folder so I can see all my files and their sizes. I have to do a rough count to guesstimate each folder. Seems like a crazy waste of time.

What am I missing here? Is there a magic button hidden away? Surely this is a pretty basic thing!


r/ProtonDrive • • 20h ago

I built a Proton Drive CLI for Linux with two-way folder sync (open source, alpha)

Post image
0 Upvotes

--

We've all been waiting for the official Linux ProtonDrive sync client for too long.

I tried different existing solutions to keep folders in sync with Proton Drive on my Linux machines ( including a headless one). None of them were 100% match for me. So I wrote a command-line client on top of Proton's open-source Drive SDK.

**GitHub:** https://github.com/NSky/protondrive-client

**What it is, and what it isn't**

- **Not an rclone wrapper**, and **not a reverse-engineered client.** It doesn't re-implement Proton's API or encryption from guesswork.

- It's built on **Proton's own open-source Drive SDK** (C#) and **Proton's cryptography library**, the same code Proton publishes for its apps. Login, keys, encryption and the API all go through Proton's code. My part is the CLI and the sync engine on top. (Proton doesn't publish these libraries on NuGet, so I build the packages from forks of their repositories.)

- **Sync uses Proton's events feed.** After the first sync, the client asks Drive "what changed since last time?" instead of walking your whole remote folder tree on every pass. That keeps it fast, and light on the API, even with large folders.

**Features**

- `login` with password, TOTP 2FA and two-password accounts; the session is saved and refreshed automatically

- `ls`, `download` and `upload` for files and whole folders, up to 4 transfers in parallel with a live per-file progress display

- `upload` never overwrites anything: it checks every name against the server first, and if anything conflicts, nothing is sent

- **Two-way sync**: `protondrive sync add ~/Proton /Backup/Laptop`, then run it once or keep it running with `--watch`

- `protondrive service enable` runs sync in the background as a systemd **user** service, and keeps running after you log out

**How sync decides**

It does a three-way comparison of the local folder, the remote state (kept current from the events feed) and a local SQLite record of the last agreed state, so it knows which side changed. When both sides changed a file, you get a conflict copy instead of a silent overwrite.

**Safety, because sync tools can eat data**

- Deleted files go to a local trash folder or to Proton's trash, never straight to oblivion

- If your local folder suddenly looks empty (unmounted disk, wrong path), it refuses to sync

- If the cloud side suddenly looks empty, it pauses that folder and keeps your local files

- Mass local deletions (more than 10 items and over half the folder) are held back until you confirm with `--force`

- When something is held back, you're told without having to read logs: a desktop notification, a notice file in the synced folder, a message at login, and the systemd status line

**Install**

- Arch: `yay -S nsky-protondrive-client-bin` (AUR)

- Other distributions: self-contained tarballs for x86-64 and ARM64 on the releases page (glibc 2.34+, so Ubuntu 22.04+, Debian 12+, Fedora 35+ and so on). No .NET runtime needed; `sudo ./install.sh` puts it in /usr/local.

**Caveats**

- **Alpha.** Keep independent backups of anything important.

- Unofficial: built on Proton's SDK, but not affiliated with or endorsed by Proton AG.

- No CAPTCHA (human verification) support yet. If Proton asks for one at login, it won't work.

- Linux only for now.

It's written in C# / .NET 10, MIT licensed. Bug reports, especially about sync edge cases, are very welcome.