Bug 450391 - "Use *.pgp extension for encrypted files" option is not working
Summary: "Use *.pgp extension for encrypted files" option is not working
Status: CONFIRMED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-16 15:24 UTC by Attila Fülöp
Modified: 2024-09-02 14:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of settings window (40.17 KB, image/png)
2022-02-16 15:24 UTC, Attila Fülöp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Fülöp 2022-02-16 15:24:49 UTC
Created attachment 146823 [details]
screenshot of settings window

SUMMARY
***
If the "Use *.pgp extension for encrypted files" option is set in the settings of Encrytion tab/group the encrypted file will still be created with .asc extension instead of .pgp. (Additionally, the tooltip on this option says the default extension is .gpg)


***


STEPS TO REPRODUCE
1. Open the "Key Management" window
2. Click on Settings/Configure KGpg
3. Set the "Use *.pgp extension for encrypted files" to checked
4.  Click Apply/OK
5. Close the "Key Management" window
6. Select a file than from the service menu of Dolphin, select the "Encrypt File" option.

OBSERVED RESULT

The encrypted file has .asc extension (with not special icon assignment)

EXPECTED RESULT

The encrypted file has .pgp extension (in case of .pgp extension - after renaming manually - Dolphin assign a special icon to the file: a small black lock)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

If the file has .gpg extension - like the tooltip suggest as a default one - the file will have this small black lock icon in dolphin.
Comment 1 Attila Fülöp 2022-02-16 16:06:27 UTC
I forgot to mention that if the "ASCII armored encryption" is not set (in the settings window or in the popup window after selecting the "Encrypt File" from the service menu) the extension will be .gpg as the tooltip suggests, but .pgp extension will not be given to the encrypted file (if the "Use .pgp extension for encrypted files is set).

Maybe, if the "ASCII armored encryption" is set in the settings window, the "Use *.pgp extension for encrypted files" should be grayed out as the .asc overwrite the .gpg or .pgp extensions.
Comment 2 David de Cos 2022-08-09 14:28:31 UTC
I can confirm this in a fully updated system:

Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

What makes this even more annoying, is the fact that (at least in my system) the *.asc extension is also associated to the text/plain file type, apart from applicaton/pgp-encrypted. For whatever reason, the former takes preference, so if you open the encrypted file in Dolphin, it uses kate (or your preferred text editor). I had to remove the *.asc extension from the text/plain file type and reopen/refresh Dolphin like a dozen times for Dolphin to start opening my *.asc files with Kgpg again.
Comment 3 David de Cos 2024-09-02 14:24:08 UTC
This is still happening in version 24.08.0.