Skip to content
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

Password does not end up in clipboard #9

Open
w2ak opened this issue Jul 7, 2017 · 9 comments
Open

Password does not end up in clipboard #9

w2ak opened this issue Jul 7, 2017 · 9 comments

Comments

@w2ak
Copy link

w2ak commented Jul 7, 2017

When using alfred, completion works fine and I can find my password. Then I hit enter and "nothing" happens, i.e., my password is not copied to clipboard.
I read the script pass-show.sh, when I use it in my terminal it works fine and copies to clipboard but not when it is executed through alfred.

I'm using iTerm2 with zsh but executing pass-show.sh with /bin/bash, which is specified in the script's shebang.

Right now I did not find what was the problem. If you have any idea I'll look into making the workflow compatible with my situation.

@w2ak w2ak changed the title Password does not copy Password does not end up in clipboard Jul 7, 2017
@JiDai
Copy link

JiDai commented Aug 25, 2017

I am in the same situation (Iterm2/ZSH) and I use Alfred 3. Did you find a solution ?

@w2ak
Copy link
Author

w2ak commented Sep 11, 2017

Do you mean apart from switching to Linux ? :P

@JiDai
Copy link

JiDai commented Sep 11, 2017

Yes :)

@CGenie
Copy link
Owner

CGenie commented Sep 30, 2017

Hello,
Sorry for large delay, I was busy and pass didn't work for a long time in my Mac, recently, because I made some changes and wasn't quick to fix them :)
Anyways I think the problem lies somewhere with GPG -- when I hit Enter on the password I'm not asked for GPG password. But when I ran the script from console, i did get an answer. I remember that GPG thing to be a bit tricky, maybe will find what is the issue.

@CGenie
Copy link
Owner

CGenie commented Sep 30, 2017

Yeah, in Alfred workflow you can turn on debug mode. This is what I get:


[2017-09-30 22:57:29][ERROR: action.script] pass-show.sh: line 11: HD/Users/pk/.gnupg/S.gpg-agent:712:1: No such file or directory

@CGenie
Copy link
Owner

CGenie commented Sep 30, 2017

https://github.com/CGenie/alfred-pass/tree/turn-gpg-off

I turned off GPG. Can you check if it works now? (need to make this and upload file to Alfred).

@JiDai
Copy link

JiDai commented Oct 1, 2017

In alfred debug console, I got this after select an item :

[2017-10-01 09:39:59][ERROR: action.script] gpg-agent[28909]: Attention : << --write-env-file >> est une option obsol`ete - non prise en compte
gpg-agent: une instance de gpg-agent fonctionne déjà —
pas de démarrage d'une nouvelle instance
gpg: 'echec du d'echiffrement : No secret key
There is no password to put on the clipboard at line 1.

EDIT : It is finally working, I launched the command in terminal, got the invite passphrase and after validate it, alfred workflow copied my passwords

@CGenie
Copy link
Owner

CGenie commented Oct 1, 2017 via email

@bgschiller
Copy link

For anyone else having this issue, you should be able to change your pinentry program to pinentry-mac so that you're still prompted for your passphrase. I give more details in this blog post: https://brianschiller.com/blog/2016/08/31/gnu-pass-alfred, and in #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants