mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-25 02:33:32 +01:00
Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb60c8a95b | ||
|
|
73e2d1ec53 | ||
|
|
0ee4734b33 | ||
|
|
5ffaa2c437 | ||
|
|
3694551158 | ||
|
|
a38829aace |
No files matched your search
Generated
+4
-4
@@ -3634,7 +3634,7 @@ checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
|
||||
|
||||
[[package]]
|
||||
name = "pdfs-cli"
|
||||
version = "3.9.0"
|
||||
version = "3.10.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
@@ -3651,7 +3651,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pdfs-core"
|
||||
version = "3.9.0"
|
||||
version = "3.10.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3681,7 +3681,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pdfs-fuse"
|
||||
version = "3.9.0"
|
||||
version = "3.10.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3714,7 +3714,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pdfs-gui"
|
||||
version = "3.9.0"
|
||||
version = "3.10.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-channel",
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ resolver = "2"
|
||||
members = ["crates/pdfs-core", "crates/pdfs-fuse", "crates/pdfs-cli", "crates/pdfs-gui"]
|
||||
|
||||
[workspace.package]
|
||||
version = "3.9.0"
|
||||
version = "3.10.0"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
authors = ["Nils Pukropp <contact@narl.io>"]
|
||||
|
||||
@@ -77,7 +77,7 @@ scriptable CLI.
|
||||
| Arch Linux | [`proton-drive-for-linux`](https://aur.archlinux.org/packages/proton-drive-for-linux) (also `-bin` and `-git`) in the AUR |
|
||||
| Debian, Ubuntu 24.04 or newer | `.deb` from the [latest release](https://github.com/narrrl/proton-drive-linux/releases/latest) |
|
||||
| NixOS | The flake in this repository: see [Installation → NixOS](docs/INSTALL.md#nixos-flake) |
|
||||
| Fedora Atomic (Silverblue, Kinoite, Bazzite, Bluefin) | The COPR repository, layered with `rpm-ostree`: see [Installation → Fedora Atomic](docs/INSTALL.md#fedora-atomic-silverblue-kinoite-bazzite-bluefin) |
|
||||
| Fedora Atomic (Silverblue, Kinoite, Bazzite, Bluefin) | A home-directory tarball or a COPR package layered with `rpm-ostree`. See [Installation → Fedora Atomic](docs/INSTALL.md#fedora-atomic-silverblue-kinoite-bazzite-bluefin) |
|
||||
| Anything else, immutable ones included | `.tar.gz` from the [latest release](https://github.com/narrrl/proton-drive-linux/releases/latest), installed into your home folder by its `install.sh`: see [Installation → Other distributions](docs/INSTALL.md#other-distributions), or [build from source](docs/INSTALL.md#build-from-source) |
|
||||
|
||||
**Fedora**
|
||||
|
||||
+7
-3
@@ -109,7 +109,6 @@ a live account since.
|
||||
| Entry | Title |
|
||||
|---|---|
|
||||
| [B66](#b66--local-only-pending-data-is-not-protected-at-shutdown-high-21) | Local-only pending data is not protected at shutdown (HIGH-21) |
|
||||
| [B293](#b293--a-large-trash-never-lists-and-empty-trash-never-empties-it) | A large trash never lists, and Empty Trash never empties it |
|
||||
| [B291](#b291--on-fedora-45s-oo7-every-saved-sign-in-is-lost-at-the-next-reboot) | On Fedora 45's oo7, every saved sign-in is lost at the next reboot |
|
||||
| [B289](#b289--the-takeout-import-mixes-in-other-services-and-drops-location-and-live-photos) | The Takeout import mixes in other services and drops location and live photos |
|
||||
| [B288](#b288--an-interrupted-takeout-import-reads-as-finished-and-one-error-ends-it) | An interrupted Takeout import reads as finished, and one error ends it |
|
||||
@@ -307,6 +306,7 @@ a live account since.
|
||||
|
||||
| Entry | Title |
|
||||
|---|---|
|
||||
| [B293](#b293--a-large-trash-never-lists-and-empty-trash-never-empties-it) | A large trash never lists, and Empty Trash never empties it |
|
||||
| [B292](#b292--two-programs-changing-settings-at-once-lose-one-of-the-changes) | Two programs changing settings at once lose one of the changes |
|
||||
| [B290](#b290--reopening-the-database-right-after-closing-it-can-be-refused-as-another-daemon) | Reopening the database right after closing it can be refused as another daemon |
|
||||
| [B276](#b276--a-stop-can-end-with-a-panic-in-a-thread-the-stop-never-waited-for) | A stop can end with a panic in a thread the stop never waited for |
|
||||
@@ -398,7 +398,7 @@ Newest first.
|
||||
|
||||
### B293 — A large trash never lists, and Empty Trash never empties it
|
||||
|
||||
**Status:** Fixed in code, live check pending
|
||||
**Status:** Fixed (verified 2026-11-22)
|
||||
|
||||
**Found:** 2026-11-22. The user reported that the Trash page always showed the same 64 items and
|
||||
that Empty Trash did nothing.
|
||||
@@ -423,10 +423,14 @@ time the server says each was trashed. Rows go only once the whole listing is in
|
||||
sends the `DELETE` at once, under the trash call time limit, and clears the stored listing.
|
||||
Restore and Delete Permanently drop their rows right away. Schema v47 indexes `trash.parent_uid`
|
||||
and drops the stored rows once, so they are read again with real deletion times.
|
||||
SDK 0.12.6 accepts the `202 Accepted` the server answers to the `DELETE`; it empties the trash
|
||||
in the background, and Empty Trash had reported that answer as an error.
|
||||
|
||||
**Verified:** `cargo test -p pdfs-fuse the_trash_lists_by_folder_and_empties -- --ignored`, the
|
||||
new `trash_upsert_keeps_other_rows_and_retain_drops_unlisted_ones`, and the SDK paging tests on
|
||||
2026-11-22. Pending: a live listing and empty on the affected account.
|
||||
2026-11-22. Live on the affected account the same day: the listing read all 3379 items in
|
||||
2.8 s and stored them in 23 s, and Empty Trash emptied it on the server (the next refresh
|
||||
removed all 3379 rows).
|
||||
|
||||
### B292 — Two programs changing settings at once lose one of the changes
|
||||
|
||||
|
||||
+8
-1
@@ -11,6 +11,11 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [3.10.0] — 2026-11-22
|
||||
|
||||
Schema: **47**. The trash table gets an index on the original folder, and its stored rows are
|
||||
dropped once so they are read again with real deletion times.
|
||||
|
||||
### Added
|
||||
|
||||
- `pdfs sync flush` waits until every queued change is on Proton Drive, retrying
|
||||
@@ -66,7 +71,8 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
|
||||
### Fixed
|
||||
|
||||
- A large trash listed only its first items and never refreshed, and Empty Trash
|
||||
never emptied it (B293). Needs proton-drive-rs 0.12.5.
|
||||
never emptied it (B293). Empty Trash no longer reports the server's "Accepted"
|
||||
answer as an error. Needs proton-sdk and proton-drive-rs 0.12.6.
|
||||
|
||||
## [3.9.0] — 2026-11-19
|
||||
|
||||
@@ -2454,6 +2460,7 @@ First stable release: FUSE files-on-demand mount, sync daemon under `proton-driv
|
||||
- The outstanding FUSE defects tracked in `docs/BUGS.md`, plus a truncate defect, validated
|
||||
by a new POSIX compliance suite for the filesystem.
|
||||
|
||||
[3.10.0]: https://github.com/narrrl/proton-drive-linux/releases/tag/v3.10.0
|
||||
[3.9.0]: https://github.com/narrrl/proton-drive-linux/releases/tag/v3.9.0
|
||||
[3.8.1]: https://github.com/narrrl/proton-drive-linux/releases/tag/v3.8.1
|
||||
[3.5.0]: https://github.com/narrrl/proton-drive-linux/releases/tag/v3.5.0
|
||||
|
||||
+7
-4
@@ -21,7 +21,7 @@ again.
|
||||
| [Arch Linux](#arch-linux-aur) | `proton-drive-for-linux` in the AUR | With your AUR helper |
|
||||
| [Debian, Ubuntu 24.04 or newer](#debian-and-ubuntu-2404-or-newer) | `.deb` from the release page | Download each release |
|
||||
| [NixOS](#nixos-flake) | The flake in this repository | With `nix flake update` |
|
||||
| [Fedora Atomic](#fedora-atomic-silverblue-kinoite-bazzite-bluefin) (Silverblue, Kinoite, Bazzite, Bluefin) | The COPR repository, layered with `rpm-ostree` | With `rpm-ostree upgrade` |
|
||||
| [Fedora Atomic](#fedora-atomic-silverblue-kinoite-bazzite-bluefin) (Silverblue, Kinoite, Bazzite, Bluefin) | Home-directory tarball or COPR package layered with `rpm-ostree` | Rerun the tarball installer or use `rpm-ostree upgrade` |
|
||||
| [Anything else](#other-distributions), immutable ones included | `.tar.gz` from the release page, installed into your home folder by its `install.sh`, or [build from source](#build-from-source) | Run the new release's `install.sh` |
|
||||
|
||||
Release packages are for x86_64. You also need a Secret Service provider, such as GNOME
|
||||
@@ -103,7 +103,7 @@ That URL follows `main`. To stay on releases, pin the input to a release tag ins
|
||||
the tag to update:
|
||||
|
||||
```nix
|
||||
inputs.proton-drive-linux.url = "github:narrrl/proton-drive-linux/v3.8.0";
|
||||
inputs.proton-drive-linux.url = "github:narrrl/proton-drive-linux/v3.10.0";
|
||||
```
|
||||
|
||||
Each release tag is built with Nix before the release is published.
|
||||
@@ -142,7 +142,9 @@ it video thumbnails, override the package with `withFfmpeg = false`. The recipe
|
||||
|
||||
### Fedora Atomic (Silverblue, Kinoite, Bazzite, Bluefin)
|
||||
|
||||
The system is read-only, so layer the COPR package on top of it. It brings its libraries along:
|
||||
To install in your home folder, unpack the x86-64 tarball and run its
|
||||
`install.sh --check` on the host desktop. See [Other distributions](#other-distributions).
|
||||
For installation and updates through the system image, layer the COPR package:
|
||||
|
||||
```bash
|
||||
sudo curl -o /etc/yum.repos.d/proton-drive-linux.repo \
|
||||
@@ -156,10 +158,11 @@ systemctl reboot
|
||||
### Other distributions
|
||||
|
||||
The `.tar.gz` from the [latest release](https://github.com/narrrl/proton-drive-linux/releases/latest)
|
||||
installs into your home folder, without root, so it also works where the system is read-only:
|
||||
installs into your home folder, without root, on hosts that provide its runtime dependencies. Check those before installing:
|
||||
|
||||
```bash
|
||||
tar -xzf proton-drive-linux-*-x86_64.tar.gz
|
||||
proton-drive-linux-*-x86_64/install.sh --check
|
||||
proton-drive-linux-*-x86_64/install.sh
|
||||
```
|
||||
|
||||
|
||||
@@ -128,6 +128,7 @@ pdfs sync ignore reset # back to the built-in patterns
|
||||
pdfs sync ignore add 'cache/' --folder ~/Projects # only in ~/Projects/.pdfsignore
|
||||
pdfs sync ignore list --folder ~/Projects
|
||||
pdfs sync ignore check ~/Projects/app/node_modules
|
||||
pdfs sync ignore check ~/Projects/data/cache.db # shows which rule applies
|
||||
```
|
||||
|
||||
The rules apply to folders kept on this computer. Files you save into `~/ProtonDrive` itself or into
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
# Build + install: cd packaging && makepkg -fi
|
||||
|
||||
pkgname=proton-drive-linux
|
||||
pkgver=3.9.0
|
||||
pkgver=3.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="Unofficial Proton Drive client for Linux: files-on-demand FUSE mount, CLI, GTK4 app + tray"
|
||||
arch=('x86_64')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pkgbase = proton-drive-for-linux-bin
|
||||
pkgdesc = Unofficial Proton Drive client: FUSE files-on-demand mount, CLI, GTK4 app, tray (binaries)
|
||||
pkgver = 3.8.0
|
||||
pkgver = 3.10.0
|
||||
pkgrel = 1
|
||||
url = https://proton-drive.narl.io
|
||||
install = proton-drive.install
|
||||
@@ -23,15 +23,15 @@ pkgbase = proton-drive-for-linux-bin
|
||||
optdepends = xdg-utils: "Open folder" action in the tray menu
|
||||
optdepends = fzf: search-as-you-type launcher (pdfs-prompt --fzf)
|
||||
optdepends = foot: terminal that hosts pdfs-prompt --fzf when started from a keybinding
|
||||
provides = proton-drive-for-linux=3.8.0
|
||||
provides = proton-drive-linux=3.8.0
|
||||
provides = proton-drive-for-linux=3.10.0
|
||||
provides = proton-drive-linux=3.10.0
|
||||
provides = pdfs
|
||||
conflicts = proton-drive-linux
|
||||
conflicts = proton-drive-for-linux
|
||||
conflicts = proton-drive-for-linux-git
|
||||
options = !strip
|
||||
options = !debug
|
||||
source = proton-drive-linux-3.8.0-x86_64.tar.gz::https://github.com/narrrl/proton-drive-linux/releases/download/v3.8.0/proton-drive-linux-3.8.0-x86_64.tar.gz
|
||||
sha256sums = 99348fbf9121624701ae43e52776e5d1c469ff5cd5e52cd216bf8cb969e0bab2
|
||||
source = proton-drive-linux-3.10.0-x86_64.tar.gz::https://github.com/narrrl/proton-drive-linux/releases/download/v3.10.0/proton-drive-linux-3.10.0-x86_64.tar.gz
|
||||
sha256sums = 464986f2516ecbe249f98570189bfd36c2f372205c4095eccd515325f113c651
|
||||
|
||||
pkgname = proton-drive-for-linux-bin
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Nils Pukropp <contact@narl.io>
|
||||
|
||||
pkgname=proton-drive-for-linux-bin
|
||||
pkgver=3.8.0
|
||||
pkgver=3.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="Unofficial Proton Drive client: FUSE files-on-demand mount, CLI, GTK4 app, tray (binaries)"
|
||||
arch=('x86_64')
|
||||
@@ -29,7 +29,7 @@ _tag="v$pkgver"
|
||||
# (desktop files, icon, user service, translations, completions) in a /usr-like
|
||||
# tree under one directory.
|
||||
source=("proton-drive-linux-$pkgver-x86_64.tar.gz::$_repo/releases/download/$_tag/proton-drive-linux-$pkgver-x86_64.tar.gz")
|
||||
sha256sums=('99348fbf9121624701ae43e52776e5d1c469ff5cd5e52cd216bf8cb969e0bab2')
|
||||
sha256sums=('464986f2516ecbe249f98570189bfd36c2f372205c4095eccd515325f113c651')
|
||||
|
||||
package() {
|
||||
cd "$srcdir/proton-drive-linux-$pkgver-x86_64"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pkgbase = proton-drive-for-linux-git
|
||||
pkgdesc = Unofficial Proton Drive client: FUSE files-on-demand mount, CLI, GTK4 app, tray (git)
|
||||
pkgver = 3.8.0.r0.g6fa91e8
|
||||
pkgver = 3.10.0.r0.g5ffaa2c
|
||||
pkgrel = 1
|
||||
url = https://proton-drive.narl.io
|
||||
install = proton-drive.install
|
||||
@@ -26,14 +26,16 @@ pkgbase = proton-drive-for-linux-git
|
||||
optdepends = xdg-utils: "Open folder" action in the tray menu
|
||||
optdepends = fzf: search-as-you-type launcher (pdfs-prompt --fzf)
|
||||
optdepends = foot: terminal that hosts pdfs-prompt --fzf when started from a keybinding
|
||||
provides = proton-drive-for-linux=3.8.0.r0.g6fa91e8
|
||||
provides = proton-drive-linux=3.8.0.r0.g6fa91e8
|
||||
provides = proton-drive-for-linux=3.10.0.r0.g5ffaa2c
|
||||
provides = proton-drive-linux=3.10.0.r0.g5ffaa2c
|
||||
provides = pdfs
|
||||
conflicts = proton-drive-linux
|
||||
conflicts = proton-drive-for-linux
|
||||
conflicts = proton-drive-for-linux-bin
|
||||
options = !lto
|
||||
source = proton-drive-for-linux-git::git+https://github.com/narrrl/proton-drive-linux.git
|
||||
source = basemap-v1.pmtiles::https://github.com/narrrl/proton-rs/releases/download/basemap-v1/basemap-v1.pmtiles
|
||||
sha256sums = SKIP
|
||||
sha256sums = ce9acab1b7ed7f15b23e2365b1b6a580db79f4bc4421851ee673eff4c920d280
|
||||
|
||||
pkgname = proton-drive-for-linux-git
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Nils Pukropp <contact@narl.io>
|
||||
|
||||
pkgname=proton-drive-for-linux-git
|
||||
pkgver=3.8.0.r0.g6fa91e8
|
||||
pkgver=3.10.0.r0.g5ffaa2c
|
||||
pkgrel=1
|
||||
pkgdesc="Unofficial Proton Drive client: FUSE files-on-demand mount, CLI, GTK4 app, tray (git)"
|
||||
arch=('x86_64')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pkgbase = proton-drive-for-linux
|
||||
pkgdesc = Unofficial Proton Drive client: files-on-demand FUSE mount, CLI, GTK4 app and tray
|
||||
pkgver = 3.8.0
|
||||
pkgver = 3.10.0
|
||||
pkgrel = 1
|
||||
url = https://proton-drive.narl.io
|
||||
install = proton-drive.install
|
||||
@@ -25,13 +25,15 @@ pkgbase = proton-drive-for-linux
|
||||
optdepends = xdg-utils: "Open folder" action in the tray menu
|
||||
optdepends = fzf: search-as-you-type launcher (pdfs-prompt --fzf)
|
||||
optdepends = foot: terminal that hosts pdfs-prompt --fzf when started from a keybinding
|
||||
provides = proton-drive-linux=3.8.0
|
||||
provides = proton-drive-linux=3.10.0
|
||||
provides = pdfs
|
||||
conflicts = proton-drive-linux
|
||||
conflicts = proton-drive-for-linux-bin
|
||||
conflicts = proton-drive-for-linux-git
|
||||
options = !lto
|
||||
source = proton-drive-for-linux-3.8.0.tar.gz::https://github.com/narrrl/proton-drive-linux/archive/refs/tags/v3.8.0.tar.gz
|
||||
sha256sums = 095186fa108f27ff2b175188bb13466a94cc8ecfd71088df47a41d4d9baa58c1
|
||||
source = proton-drive-for-linux-3.10.0.tar.gz::https://github.com/narrrl/proton-drive-linux/archive/refs/tags/v3.10.0.tar.gz
|
||||
source = basemap-v1.pmtiles::https://github.com/narrrl/proton-rs/releases/download/basemap-v1/basemap-v1.pmtiles
|
||||
sha256sums = 181abf766bed0ab7b3a7f1c1c0092e93d18ce945eb98816f5eb2c549dc8f13ad
|
||||
sha256sums = ce9acab1b7ed7f15b23e2365b1b6a580db79f4bc4421851ee673eff4c920d280
|
||||
|
||||
pkgname = proton-drive-for-linux
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Nils Pukropp <contact@narl.io>
|
||||
|
||||
pkgname=proton-drive-for-linux
|
||||
pkgver=3.8.0
|
||||
pkgver=3.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="Unofficial Proton Drive client: files-on-demand FUSE mount, CLI, GTK4 app and tray"
|
||||
arch=('x86_64')
|
||||
@@ -27,7 +27,7 @@ options=('!lto')
|
||||
install=proton-drive.install
|
||||
source=("$pkgname-$pkgver.tar.gz::$_repo/archive/refs/tags/v$pkgver.tar.gz"
|
||||
"basemap-v1.pmtiles::https://github.com/narrrl/proton-rs/releases/download/basemap-v1/basemap-v1.pmtiles")
|
||||
sha256sums=('095186fa108f27ff2b175188bb13466a94cc8ecfd71088df47a41d4d9baa58c1'
|
||||
sha256sums=('181abf766bed0ab7b3a7f1c1c0092e93d18ce945eb98816f5eb2c549dc8f13ad'
|
||||
'ce9acab1b7ed7f15b23e2365b1b6a580db79f4bc4421851ee673eff4c920d280')
|
||||
|
||||
_srcname="proton-drive-linux-$pkgver"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Match Arch PKGBUILD `!lto` — LTO has broken some GTK/Rust links in practice.
|
||||
%global _lto_cflags %{nil}
|
||||
|
||||
%{!?version: %global version 3.9.0}
|
||||
%{!?version: %global version 3.10.0}
|
||||
%global forge https://github.com/narrrl/proton-drive-linux
|
||||
# Files come from the checkout, or from the unpacked tag archive.
|
||||
%global src %{?git_dir}%{!?git_dir:.}
|
||||
|
||||
@@ -8,6 +8,7 @@ set -Eeuo pipefail
|
||||
usage() {
|
||||
cat >&2 <<'EOF'
|
||||
usage: ./install.sh [--prefix DIR] [--no-service] [--force]
|
||||
./install.sh --check
|
||||
./install.sh --uninstall [--prefix DIR] [--no-service]
|
||||
|
||||
Installs the app, the tray, the search launcher and the `pdfs` command into
|
||||
@@ -15,6 +16,7 @@ Installs the app, the tray, the search launcher and the `pdfs` command into
|
||||
the tray's login entry into ~/.config/autostart. Run it again from a newer
|
||||
tarball to update; the running service restarts on the new version.
|
||||
|
||||
--check check the binary and host requirements without installing files
|
||||
--prefix DIR install under DIR instead of ~/.local
|
||||
--uninstall remove what an earlier run installed; your settings, cache
|
||||
and the files in Proton Drive stay
|
||||
@@ -26,6 +28,7 @@ EOF
|
||||
}
|
||||
|
||||
prefix=""
|
||||
check=0
|
||||
uninstall=0
|
||||
service=1
|
||||
force=0
|
||||
@@ -33,6 +36,7 @@ while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--prefix) [[ $# -ge 2 ]] || usage; prefix="$2"; shift ;;
|
||||
--prefix=*) prefix="${1#*=}" ;;
|
||||
--check) check=1 ;;
|
||||
--uninstall) uninstall=1 ;;
|
||||
--no-service) service=0 ;;
|
||||
--force) force=1 ;;
|
||||
@@ -41,6 +45,7 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
shift
|
||||
done
|
||||
(( !check || (!uninstall && !force) )) || usage
|
||||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
# The copy kept for --uninstall knows where it was installed.
|
||||
if [[ -z "$prefix" && -f "$here/installed-files" ]]; then
|
||||
@@ -97,15 +102,19 @@ fi
|
||||
|
||||
[[ -x "$here/bin/pdfs" ]] || die "run install.sh from the unpacked tarball (no bin/pdfs next to it)"
|
||||
|
||||
# A package and this install would each bring a service unit, and the one in
|
||||
# ~/.config wins: the two would run different versions against one database.
|
||||
if [[ $force -eq 0 && ( -e /usr/bin/pdfs || -e /usr/lib/systemd/user/$unit ) ]]; then
|
||||
die "a package already installs Proton Drive for Linux (/usr/bin/pdfs). Remove it first, or keep using it."
|
||||
fi
|
||||
|
||||
# Missing libraries would only show when the app does not start.
|
||||
if [[ "$(uname -m)" != x86_64 ]]; then
|
||||
die "this binary tarball requires an x86-64 Linux host"
|
||||
fi
|
||||
command -v ldd >/dev/null || die "ldd is required to check the tarball's shared libraries"
|
||||
missing="$(for exe in pdfs pdfs-app pdfs-tray pdfs-prompt; do
|
||||
ldd "$here/bin/$exe" 2>&1 | grep -E 'not found' || true
|
||||
if output="$(LC_ALL=C ldd "$here/bin/$exe" 2>&1)"; then
|
||||
grep -F 'not found' <<<"$output" || true
|
||||
else
|
||||
# ldd itself failed (not an x86-64 ELF, unreadable, ...): its first
|
||||
# line says why, the rest is noise.
|
||||
printf '%s: %s\n' "$exe" "$(head -n1 <<<"$output")"
|
||||
fi
|
||||
done | sort -u)"
|
||||
if [[ -n "$missing" ]]; then
|
||||
printf '%s\n' "$missing" | sed 's/^[[:space:]]*/ /' >&2
|
||||
@@ -131,6 +140,30 @@ elif [[ ! -u "$fusermount" ]]; then
|
||||
warn "$fusermount is not setuid root; My files may not mount"
|
||||
fi
|
||||
|
||||
# --check only warns about it: the tarball can still be checked on a host that
|
||||
# has the package, it just must not be installed there.
|
||||
package_installed() {
|
||||
[[ -e /usr/bin/pdfs || -e /usr/lib/systemd/user/$unit ]]
|
||||
}
|
||||
|
||||
if [[ $check -eq 1 ]]; then
|
||||
if package_installed; then
|
||||
warn "a package already installs Proton Drive for Linux (/usr/bin/pdfs); remove it before installing this tarball"
|
||||
fi
|
||||
[[ -n "$fusermount" && -u "$fusermount" && "$(stat -Lc %u "$fusermount")" == 0 ]] ||
|
||||
die "the mount requires a setuid-root fusermount3"
|
||||
[[ -c /dev/fuse && -r /dev/fuse && -w /dev/fuse ]] || die "the current user needs access to /dev/fuse"
|
||||
"$here/bin/pdfs" --version
|
||||
say "The binaries load and the FUSE helper is available. Sign-in and mounting require a desktop session."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# A package and this install would each bring a service unit, and the one in
|
||||
# ~/.config wins: the two would run different versions against one database.
|
||||
if [[ $force -eq 0 ]] && package_installed; then
|
||||
die "a package already installs Proton Drive for Linux (/usr/bin/pdfs). Remove it first, or keep using it."
|
||||
fi
|
||||
|
||||
# Where each file of the tarball goes, as "source<TAB>target" lines.
|
||||
targets() {
|
||||
local file rel
|
||||
|
||||
@@ -24,6 +24,30 @@ src="$(find "$work" -mindepth 1 -maxdepth 1 -type d -name 'proton-drive-linux-*'
|
||||
export HOME="$work/home" XDG_CONFIG_HOME="$work/home/.config"
|
||||
mkdir -p "$HOME"
|
||||
prefix="$HOME/.local"
|
||||
# Exercise the failure path independently of this host's own packages.
|
||||
mkdir "$work/tools"
|
||||
cat >"$work/tools/ldd" <<'EOF'
|
||||
#!/bin/sh
|
||||
echo 'libmissing.so => not found'
|
||||
EOF
|
||||
chmod +x "$work/tools/ldd"
|
||||
if PATH="$work/tools:$PATH" "$src/install.sh" --check >"$work/check.log" 2>&1; then
|
||||
fail "compatibility check accepted a missing library"
|
||||
fi
|
||||
grep -q 'libmissing.so' "$work/check.log" || fail "check did not name the missing library"
|
||||
[ -z "$(find "$HOME" -mindepth 1 -print -quit)" ] || fail "compatibility check wrote into HOME"
|
||||
# ldd refusing the binary outright must fail the check too, not pass it.
|
||||
cat >"$work/tools/ldd" <<'EOF'
|
||||
#!/bin/sh
|
||||
echo 'not a dynamic executable' >&2
|
||||
exit 1
|
||||
EOF
|
||||
if PATH="$work/tools:$PATH" "$src/install.sh" --check >"$work/check.log" 2>&1; then
|
||||
fail "compatibility check accepted a binary ldd could not load"
|
||||
fi
|
||||
grep -q 'not a dynamic executable' "$work/check.log" || fail "check did not say why ldd failed"
|
||||
[ -z "$(find "$HOME" -mindepth 1 -print -quit)" ] || fail "compatibility check wrote into HOME"
|
||||
|
||||
"$src/install.sh" --no-service --force >"$work/install.log" 2>&1 ||
|
||||
{ cat "$work/install.log" >&2; fail "install.sh failed"; }
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: proton-drive-linux 3.9.0\n"
|
||||
"Project-Id-Version: proton-drive-linux 3.10.0\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/narrrl/proton-drive-linux/issues\n"
|
||||
"POT-Creation-Date: 2026-11-22 02:24+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
|
||||
Reference in new issue
Block a user