I remember that if I left click an encrypted text file in Dolphin, the Kgpg will pop up for passphrase and open the decrypted text file in its simple text editor. But I do not know why it doesn’t work like that any more and I do not know when it changes this behaviour. Now, after left click, Kgpg just asks for passphrase then disappear. But I could not find the decrypted file and it would not show up in the text editor.
I am not sure but my encrypted file was not deleted by Kgpg. The problem is only that after Kgpg decrypts the file, which is an encrypted plain text file (e.g. text.md.gpg), there is no saved decrypted file (e.g. text.md) and the Kgpg text editor is not shown.
Here is the version,
cnzhx@ostp:~> kgpg -v
I want to ask this question because to click on the encrypted file, input the passphrase and view the decrypted content in Kgpg are simple than right click, choose decrypt, save then open the saved file with Kate (the text editor).
The bug from the report I linked to should be fixed in the version you have. Although it looks perhaps as if it was only a partial fix?
I moved to kleopatra due to that particular bug. So, from memory, as I no longer have kgpg installed:
Left click on an encrypted file would ask for pass phrase and save the decrypted file in the same directory as the encrypted file.
To use kgpg’s editor it was necessary to right click to open Dolphin’s context memory, then “Actions - View File Decrypted”.
(That is certainly how it behaves using a much older v2.14.1 with kde4, as I still have a PC using that and have just checked).
I don’t know if that behaviour has changed, but I didn’t think it had, nor do I recall a (kgpg) option to control that behaviour.
OK… I’ve just installed kgpg 17.08.01 on a Tumbleweed (20171001) system.
I’m seeing exactly the same behaviour as you describe.
An encrypted file when left clicked (from Dolphin) launches kgpg which then asks for the passphrase. The decrypted file however is not saved in the directory containing the encrypted version, nor does it seem to be saved anywhere! An improvement on bug https://bugs.kde.org/show_bug.cgi?id=375029 but still not working as intended.
Right click, and from the context menu “Actions - View File Decrypted” decrypts the file and displays it in the (kgpg) editor. So for the moment, until that bug is fully addressed, that looks like the only method you’ll be able to use…
Hi, Paul, thank you for looking into this and sorry for my late response.
I ran into this problem a long time ago but I thought it had been caused by my bad configuration.
Since this is like this for a long time, I am wondering why does there no one report it? I am sure there are many experienced people using encryption/decryption a lot than me. Is there any better operation/workflow to do this than using Kgpg, or people just right click and choose “Actions” > “View file decrypted”?
I’m not absolutely certain but believe this problem first appeared with the kf5 port. As I wrote earlier it’s not present with the older (kde4) v2.14.1 of Kgpg. I still have a PC with that version and have just had another look at it. Left click (from Dolphin) request passphrase, decrypts and saves the file. I don’t doubt what you say, but are you sure left click used to open the editor, I don’t recall it doing that previously. Also, looking through the configuration options I don’t see anywhere the left click function can be changed.
Since this is like this for a long time, I am wondering why does there no one report it? I am sure there are many experienced people using encryption/decryption a lot than me.
Is there any better operation/workflow to do this than using Kgpg, or people just right click and choose “Actions” > “View file decrypted”?
I don’t offhand know of any other (kde) GUI front-ends for GPG other than Kgpg and kleopatra. Kleopatra hasn’t a built in editor, so as that appears to be the primary function you require it would be of no use to you.
It might not save keystrokes/mouseclicks, but an alternative method you could try would be to set Kgpg to start automatically at login (Configure Kgpg - Misc). Then change the System Tray settings to always show the KGpg icon (System Tray Settings - Entries - [KGpg Visibility] Shown). Having done that a left click on the icon will open the KGpg editor where you can drag and drop an encrypted file.
Actually I cannot remember how long ago I had used this feature because I did not use the encryption too much before. But I think I recall it correctly that left click will bring up Kgpg asking for passphrase, then show the decrypted text file directly in the Kgpg editor requiring no other manual operation.
Yes, there is a chance I do not recall it correctly. I am not 100% sure.
I have never thought this could be a bug as this is such a fundamental feature.
I guess the best option for me is right click and choose Kleopetra or Kgpg. It seems “View file decrypted” is much easier. Thanks a lot for your help.