Bug 512006

Summary: plasma-vault does not work
Product: [Plasma] plasmashell Reporter: Alain <f6cax.alain>
Component: Vaults widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: critical CC: ivan.cukic, kdedev
Priority: NOR    
Version First Reported In: 6.4.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The only window i can have.

Description Alain 2025-11-12 19:01:32 UTC
Created attachment 186731 [details]
The only window i can have.

Plasma Vault isn't working for me. I get a window that doesn't let me choose the encryption method. The application only asks me to enter a directory name, which I do, but the 'next' button remains grayed out and I can't proceed.

My PATH includes gocryptfs, crypfs, and encfs. 
I compiled plasma-vault with the following cmake command:

      cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
            -D CMAKE_INSTALL_LIBEXECDIR=libexec \
            -D CMAKE_BUILD_TYPE=Release         \
            -D BUILD_QT5=OFF                    \
            -D BUILD_TESTING=OFF                \
            -W no-dev ..
            
and get :

-- Checking for one of the modules 'gio-2.0'
-- Found Gocryptfs: /usr/local/bin/gocryptfs
-- The following RUNTIME packages have been found:

 * Gocryptfs, Encrypted filesystem backend written in Go, <https://nuetzlich.net/gocryptfs/>
   Required at runtime to create and unlock Vaults

-- The following OPTIONAL packages have been found:

 * Qt6QuickTools (required version >= 6.9.3)
 * OpenGL
 * Qt6Quick (required version >= 6.8.0)
 * WrapVulkanHeaders
 * PkgConfig
 * KF6NetworkManagerQt (required version >= 6.14.0)
 * Qt6GuiTools (required version >= 6.9.3)
 * Qt6WidgetsTools (required version >= 6.9.3)
 * Qt6CoreTools (required version >= 6.9.3)
 * Qt6DBusTools (required version >= 6.9.3)
 * Qt6QmlTools (required version >= 6.9.3)

-- The following REQUIRED packages have been found:

 * ECM (required version >= 6.14.0), Extra CMake Modules., <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
 * Qt6 (required version >= 6.8.0)
 * KF6ConfigWidgets (required version >= 6.14.0)
 * KF6DBusAddons (required version >= 6.14.0)
 * KF6ItemModels (required version >= 6.14.0)
 * KF6KIO (required version >= 6.14.0)
 * KF6Service (required version >= 6.14.0)
 * KF6WidgetsAddons (required version >= 6.14.0)
 * KF6 (required version >= 6.14.0)
 * Plasma (required version >= 6.4.6)
 * Qt6Core (required version >= 6.8.0)
 * PlasmaActivities (required version >= 6.4.6)
 * Qt6Widgets (required version >= 6.8.0)
 * Qt6DBus (required version >= 6.7.0)
 * Gettext
 * KF6I18n (required version >= 6.14.0)
 * KSysGuard

-- Configuring done (5.8s)
-- Generating done (0.1s)

OBSERVED RESULT
No choice for encryptation méthod. Button Next remains grayed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.4.*
KDE Plasma Version: 6.4.*
KDE Frameworks Version: 6.19
Qt Version: 6.9.3

ADDITIONAL INFORMATION
It was working with Qt5/Plasma-5
Comment 1 TraceyC 2025-11-25 18:25:39 UTC
Thanks for the bug report. I'm not able to reproduce this on Fedora 43 with Plasma 6.5.2 (before updates)
Can you try again with Plasma 6.5.3, using the Nobara package?

If you're building this yourself, then you probably need to fix how you're building it. In that case, you'll need to contact Nobara for assistance.
Comment 2 Alain 2025-11-26 12:35:55 UTC
plasma-vaullt-6.5.3 doesn't work too. I have :
encfs version 1.9.5
CryFS Version 1.0.1
gocryptfs [unknown]; go-fuse v2.8.0; 2025-11-11 go1.23.2 linux/amd64
All of them are working fine in command line.
Comment 3 Alain 2025-11-26 14:16:55 UTC
On my system, the `gocryptfs` command returned:
`gocryptfs [Unknown]; go-fuse v2.8.0; 2025-11-12 go1.23.2 linux/amd64`
                     ^^^^^^^
Plasma-vault doesn't like this 'unknown' version. After patching and recompiling `gocryptfs-2.6.1`, I now get:
`gocryptfs [2.6.1]; go-fuse v2.8.0; 2025-11-26 go1.23.2 linux/amd64`

Plasma-vault now works correctly with `gocryptfs`, but I still don't have the option to choose 'encfs' or 'cryfs'.

According to the source files `cryfsbackend.cpp` and `encfsbackend.cpp`, my versions of 'cryfs' and 'encfs' are correct. 
CryFS Version 1.0.1
encfs version 1.9.5
fusermount version: 2.9.9

Any ideas?
Comment 4 Antonio Rojas 2025-11-26 14:36:12 UTC
(In reply to Alain from comment #3)
> On my system, the `gocryptfs` command returned:
> `gocryptfs [Unknown]; go-fuse v2.8.0; 2025-11-12 go1.23.2 linux/amd64`
>                      ^^^^^^^
> Plasma-vault doesn't like this 'unknown' version. After patching and
> recompiling `gocryptfs-2.6.1`, I now get:
> `gocryptfs [2.6.1]; go-fuse v2.8.0; 2025-11-26 go1.23.2 linux/amd64`
> 
> Plasma-vault now works correctly with `gocryptfs`, but I still don't have
> the option to choose 'encfs' or 'cryfs'.
> 
> According to the source files `cryfsbackend.cpp` and `encfsbackend.cpp`, my
> versions of 'cryfs' and 'encfs' are correct. 
> CryFS Version 1.0.1
> encfs version 1.9.5
> fusermount version: 2.9.9
> 
> Any ideas?

cryfs and encfs are no longer supported for new vaults
Comment 5 TraceyC 2025-11-26 17:02:21 UTC
At this point, it sounds like plasma-vault is working as expected with gocryptfs. Are you having any other issues with it, Alain?
Comment 6 Alain 2025-11-26 17:08:08 UTC
(In reply to TraceyC from comment #5)
> At this point, it sounds like plasma-vault is working as expected with
> gocryptfs. Are you having any other issues with it, Alain?

No more issue now. It works as expected. Thank you.
Comment 7 TraceyC 2025-11-26 17:46:52 UTC
Great to hear, thanks!