Page MenuHome GnuPG

Kleopatra: encryption via menu button does only encrypt files, not folders
Closed, WontfixPublic

Description

This occurs only if you encrypt via the button "Sign/Encrypt" in Kleopatra, when you start via the Explorer the selected files and folders are both encrypted.

After clicking "Sign/Encrypt" in Kleo, select some files and folders.

Note that only the names of the files and not the folders are listed in the field "filename" at the bottom.
If you proceed with "Open" only the files are added to the encrypted archive.

Details

Version
3.1.26, VS-Desktop-3.2.0.0-beta214

Event Timeline

This is as intended, in Kleopatra you either encrypt files or folders (via File-> Sign/Encrypt Folder).

But this is a usability problem. Can we change this?

No. Windows has a file selection dialog where you can only select files and a folder selection dialog where you can only select folders. We cannot change Windows (and we will not use a non-native file dialog).

Could we then clarify this for the user somehow? Maybe both
a) add "Sign/Encrypt Folder" to the default menu bar - it would need an icon added for that, too
b) make it clear in the documentation

aheinecke added a subscriber: aheinecke.

No. Windows has a file selection dialog where you can only select files and a folder selection dialog where you can only select folders. We cannot change Windows (and we will not use a non-native file dialog).

I am not sure how often I said this already. I documented this multiple times and spend days trying to find a way around this. So I tend to just scream "WONTFIX!"

But we talked about this yesterday. And yes I will try to somehow look for something to improve this. Since this was also reported by a customer, otherwise I would say that this issue exists only because Linux users are unused to the dialog.

I've added a footnote in the VSD user documentation regarding this difference as a very minimal measure and a reminder for support.

I would like to change the description of this ticket.
Which way do we want to go?

  • Add Icon to "Sign/Encrypt Folder" and make it a default item in the menu bar and either
    • make it obvious for the user that the selected folders will be ignored although they are marked as selected or
    • do not show folders to choose in the first place
  • Switch to gpgtar if folders are involved. In that case "Sign/Encrypt Folder" would no longer be needed.

We cannot

Switch to gpgtar if folders are involved. In that case "Sign/Encrypt Folder" would no longer be needed.

because we don't know that folders are involved. And I don't think we can hide the folders, so that users cannot select folders and wonder why they are not encrypted, because Microsoft thought it would be a great idea to basically use the Windows Explorer as File Open/Select/Save dialog. And, of course, they won't change this because this would break all existing Windows applications if suddenly folders are returned.

And not using the native Windows dialog isn't an option because people are used to the Windows dialog. I absolutely hate it when some application on Linux doesn't use the KDE dialog but its own dialog because it behaves slightly differently and it doesn't have my bookmarked folders.

ebo closed this task as Resolved.EditedFeb 8 2024, 1:27 PM
ebo claimed this task.
ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

As a change in behavior is not possible, we continue with the button solution here: T6984: Kleopatra: Add icon for folder encryption

ebo changed the task status from Resolved to Wontfix.Feb 8 2024, 1:30 PM