mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-19 01:55:04 +01:00
Fedora 45 and 46 ship oo7-daemon 0.7.0~beta^1.e91b98a, which applies SetSecret only in memory (fixed upstream in 7fb11dd, after that snapshot). Every token rotation saved there was lost at the next reboot, and the next start found a spent refresh token. An existing entry is now written with CreateItem and replace, in the old item's collection with its label and attributes, which that build persists. A duplicate left behind is removed; the first save, a locked item, ambiguity or any failure fall back to SetSecret. No prompt is ever shown on this path. The daemon also logs a short fingerprint of the refresh token at each resume and each save, so a log across a reboot shows whether the keyring returned the last token saved.
44 lines
1.0 KiB
Rust
44 lines
1.0 KiB
Rust
//! Core building blocks for the Proton Drive Linux client: static client
|
|
//! identity, XDG paths, and the login/session/keyring layer that every
|
|
//! front-end (CLI today, daemon + GUI later) shares.
|
|
|
|
pub mod access;
|
|
pub mod auth;
|
|
pub mod batch;
|
|
pub mod cache;
|
|
pub mod config;
|
|
pub mod control;
|
|
pub mod db;
|
|
pub mod error;
|
|
pub mod exiftime;
|
|
pub mod kernelkey;
|
|
pub mod keycheck;
|
|
pub mod localindex;
|
|
pub mod menu;
|
|
pub mod mountfail;
|
|
pub mod mountpoint;
|
|
pub mod mounts;
|
|
pub mod opener;
|
|
pub mod places;
|
|
pub mod profile;
|
|
pub mod sdkcache;
|
|
pub mod search;
|
|
mod secretservice;
|
|
pub mod service;
|
|
pub mod shell;
|
|
pub mod similar;
|
|
pub mod syncignore;
|
|
pub mod syncroot;
|
|
pub mod takeout;
|
|
pub mod timestamp;
|
|
pub mod tray;
|
|
pub mod update;
|
|
|
|
pub use access::{Access, access_for, perm_bits};
|
|
pub use error::{CoreError, CoreResult, Error, Result};
|
|
|
|
// Re-export the SDK surface downstream crates need, so they depend on
|
|
// `pdfs-core` rather than pinning the SDK directly.
|
|
pub use proton_drive_rs::{self, Node, NodeKind, ProtonDriveClient};
|
|
pub use proton_sdk;
|