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.
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.
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.
This is still happening in version 24.08.0.