349.1. plasma-vault-6.8.2
Plasma Vaults — encrypted gocryptfs folders opened and closed from the tray, with offline-only vaults
6.8.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND CC0-1.0 · 1.7 SBU · 1.4 MiB, 13 files · 50_desktop, 26 of 92 · ports/core/filesystem/plasma-vault
Homepage: https://invent.kde.org/plasma/plasma-vault
Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:
Encrypted gocryptfs folders opened and closed from the tray.
Plasma Vaults are encrypted folders a person opens and closes from the system tray. A module of the KDE daemon (kded_plasmavault) creates, mounts and unmounts them, the tray applet lists them, and a Dolphin context-menu plugin opens one from its encrypted directory. A vault can be tied to activities, and an offline vault turns networking off while it is open. The encryption is gocryptfs over FUSE.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfig, kcoreaddons, kdbusaddons, ki18n, kitemmodels, kio, kservice, kwidgetsaddons, kirigami, libplasma, plasma-activities, networkmanager-qt, libksysguard, kded, gocryptfs, fuse, lsof.
Required by (1): kde-plasma.
Sources: plasma-vault-6.8.2.tar.xz (200.6 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install plasma-vault'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6NetworkManagerQt=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6NetworkManagerQt=ON— Offline vaults, which switch NetworkManager’s networking off while they are open, through networkmanager-qt. Upstream links the framework only when it is found, and without it the wizard still offers an offline vault whose switch does nothing, so the network stays up while the vault is open.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Directories: /usr/share/licenses/plasma-vault, /usr/share/plasma/plasmoids/org.kde.plasma.vault.
The creation wizard makes gocryptfs vaults only. The import wizard also lists CryFS and EncFS, whose tools are not ports, so importing a vault of either kind reports its backend program missing. A vault is mounted by running gocryptfs and unmounted with fusermount3 from fuse; both are in depends for run time, together with kded, whose kded6 loads the module at login, and kirigami for the applet. The configure’s search for gocryptfs is a run-time note and changes nothing in the build.
Closing a vault that a program still uses offers to force it closed: the module asks lsof which processes hold files under the mount point and ends each one with SIGKILL through libksysguard. lsof is in depends for that run-time call; without it the forced close reports that it cannot list the applications.