-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"File is not encrypted, all GPG functions disabled" on KDE #40
Comments
Start vim with no arguments and run |
@jamessan Thanks for that. I did the same and here's the output of debug.log
Additionally, I figured this out. gpgconf had changed my ~/.gnupg/gpg.conf If I
(Pardon me for pasting even the commented lines. :P I've also removed the default-key) I tried changing debug-level to none and it makes no difference. |
The rc 0 implies that is encrypted, but there's no output to tell us how which is why we say it isn't encrypted.
This is probably the problem. It prevents the normal logging output that the plugin parses. I would suggest removing that line. |
Yes, commenting that line out solves the problem. Thanks a lot. The problem is/was created by the program KWatchGnuPG (which I ran from inside kmail). It runs gpgconf and changes the log-file to that socket. Resetting the log-file and not running kwatchgnupg again would be a solution. Thanks again for your patience. |
I'll see if I can override that from the command-line in case there are programs that require that to be set. |
If the “log-file” option is set in ~/.gnupg/gpg.conf, then using “--batch” means that the CLI's “--logger-fd” is ignored. Since this command shouldn't need any of “--batch”'s functionality and “log-file” hides all the output we're expecting, dropping “--batch” is the sane thing to do. Closes #40 Signed-off-by: James McCoy <vega.james@gmail.com> # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: plugin/gnupg.vim # # Untracked files: # foo.asc # foo.gpg # foo.sig # # ------------------------ >8 ------------------------ # Do not touch the line above. # Everything below will be removed. diff --git c/plugin/gnupg.vim i/plugin/gnupg.vim index 80f2061..b0bcd5c 100644 --- c/plugin/gnupg.vim +++ i/plugin/gnupg.vim @@ -1,5 +1,5 @@ " Name: gnupg.vim -" Last Change: 2015 Jul 16 +" Last Change: 2015 Jul 26 " Maintainer: James McCoy <vega.james@gmail.com> " Original Author: Markus Braun <markus.braun@krawel.de> " Summary: Vim plugin for transparent editing of gpg encrypted files. @@ -448,7 +448,7 @@ function s:GPGDecrypt(bufread) " find the recipients of the file let cmd = { 'level': 3 } - let cmd.args = '--verbose --decrypt --list-only --dry-run --batch --no-use-agent --logger-fd 1 ' . shellescape(filename) + let cmd.args = '--verbose --decrypt --list-only --dry-run --no-use-agent --logger-fd 1 ' . shellescape(filename) let output = s:GPGSystem(cmd) " Suppress the "N more lines" message when editing a file, not when reading
History
I am on archlinux. I had been running vim-gnupg smoothly in Gnome shell for at least 4 months. Last used 1 month back.
Yesterday I uninstalled gnome shell and installed KDE. During this process I also updated all the packages on the system.
Problem
.gpg files do not decrypt automatically. Gives the message "File is not encrypted, all GPG functions disabled"
I then updated the plugin to the latest version on git. Now, the error message isn't appearing. But the file is still not decrypted.
other info
Is there anything I can do to debug this issue?
Update
I missed an important detail. During the switch to kde, I had to uninstall seahorse and replace it with ksshaskpass.
The text was updated successfully, but these errors were encountered: