This afflicts Version 2.9.1 In the editor, clicking "Decrypt" fails to decrypt encrypted test. The Encrypt button works and Sign/Verify button work (i.e., it asks for passphrase, signs text). Key management is as expected. However, clicking on "Decrypt" does nothing. No passphrase is asked for. For each time the "Decrypt" button is pressed, there is a gpg2 process spawned the process is gpg2 --no-secmem-warning --no-tty --no-greeting --options /run/media/USB/GPG/gnupg/gpg.conf --debug-level none --status-fd=1 --decrypt These processes sit idle until the editor window is closed. Other GPG front ends like Kleopatra, and GPA work. Please note that KGPG is configured to use the gpg2 binary. Using the gpg binary yields the same results. Reproducible: Always Steps to Reproduce: 1. Go to File -> Open Editor 2. Enter text and encrypt 3. Click "Decrypt" Actual Results: After clicking decrypt, nothing happens. a gpg2 process is spawned but no passphrase is asked for. Expected Results: It should ask for passphrase, if not cached, and show the decrypted text. Right clicking on the KGPG icon in the system tray and selecting "Decrypt Clipboard" displays the clipboard with copied ciphertext.
Please build KGpg from sources and when calling CMake add -DKGPG_DEBUG_TRANSACTIONS=On to the commandline. Then start the built KGpg from a terminal (make sure to quit the other one before). When you decrypt it will give you some extra debug output. Make sure to use a dummy encrypted text, as the text contents are also present in the debug log (or just strip the contents). Then add the log here.
Hi Rolf, I followed those instructions, making sure to quit kgpg if it was running and running the copy I just compiled, but go not additional debugging information. the problem remained as it. If I run the gpg2 command manually, with the options as per the original post of mine, piping gpg encrypted data to it, it behaves as expected, asking for the passphrase and decrypting. D.
Then you did something wrong. $ cmake -D KGPG_DEBUG_TRANSACTIONS=On /source/of/kgpg && make && ./kgpg -d [...] kgpg(18897) KGpgTransaction::start: KGpgDecrypt(0x1808e00) ("/usr/bin/gpg2", "--no-secmem-warning", "--no-tty", "--no-greeting", "--options", "/home/eike/.gnupg/gpg.conf", "--debug-level", "none", "--status-fd=1", "--decrypt", "--command-fd=0") kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] ENC_TO 845489F2300CC5F0 16 0" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] USERID_HINT 845489F2300CC5F0 Rolf Eike Beer <eike@sf-mail.de>" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] NEED_PASSPHRASE 845489F2300CC5F0 5CA4893E69B9FC4E 16 0" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] GOOD_PASSPHRASE" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] BEGIN_DECRYPTION" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] DECRYPTION_INFO 2 9" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] PLAINTEXT 62 1369251553 " kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] PLAINTEXT_LENGTH 3" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "foo[GNUPG:] DECRYPTION_OKAY" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] GOODMDC" kgpg(18897) KGpgTransactionPrivate::slotReadReady: KGpgDecrypt(0x1808e00) "[GNUPG:] END_DECRYPTION"
Didn't provide such output for me. I've found that occasionally when I close the editor window, it THEN asks for the passphrase. I found the source of the problem I had the line enable-progress-filter in my gpg.conf. Removing this fixed the problem. It didn't cause issues with any other version of kgpg.
Thanks for the debugging, I will have a look.
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand. Thank you for helping us make KDE software even better for everyone!
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
I still need to check. My bad.