Results 1 to 9 of 9

Thread: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

  1. #1
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    Hello everyone,

    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.

    Anyone knows how to restore the old behaviour?

    Thanks in advance!

    Regards,
    CnZhx
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    Quote Originally Posted by cnzhx View Post
    ... 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.
    From your description, perhaps you've been bitten by this bug: https://bugs.kde.org/show_bug.cgi?id=375029

    What version of kgpg are you actually using? (It was fixed in 17.08)
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191016) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  3. #3
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    Hi @tannington, thank you.

    Quote Originally Posted by tannington View Post
    From your description, perhaps you've been bitten by this bug: https://bugs.kde.org/show_bug.cgi?id=375029

    What version of kgpg are you actually using? (It was fixed in 17.08)
    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,
    Code:
    cnzhx@ostp:~> kgpg -v
    kgpg 17.08.1
    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).
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  4. #4
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    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.

    Not withstanding, from what you've said it would seem that left click (decrypt and save) is not working, probably worthy of a new bug report. https://bugs.kde.org/enter_bug.cgi?p...ponent=general

    If I find time later today I'll re-install kgpg (17.08.1 Tumbleweed) and see if I'm able to replicate the issue.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191016) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  5. #5
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    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...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191016) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  6. #6
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    As this is similar, but not the same as the above bug report.
    New bug report https://bugs.kde.org/show_bug.cgi?id=385437 if you feel there is anything to add.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191016) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  7. #7
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    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"?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  8. #8
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    Quote Originally Posted by cnzhx View Post
    I ran into this problem a long time ago but I thought it had been caused by my bad configuration.
    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.
    Your guess is as good as mine on that one.
    There are quite a few bugs still being reported against Kgpg https://bugs.kde.org/buglist.cgi?bug...0&product=kgpg and it's still an actively maintained program https://cgit.kde.org/kgpg.git/log/

    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.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191016) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  9. #9
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: How to left click to decrypt and show text file in the KGpg's editor in Dolphin

    Quote Originally Posted by tannington View Post
    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.
    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.

    Quote Originally Posted by tannington View Post
    Your guess is as good as mine on that one.
    There are quite a few bugs still being reported against Kgpg https://bugs.kde.org/buglist.cgi?bug...0&product=kgpg and it's still an actively maintained program https://cgit.kde.org/kgpg.git/log/
    I have never thought this could be a bug as this is such a fundamental feature.

    Quote Originally Posted by tannington View Post
    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.
    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.
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •