I’ve recently found that when trying to push/pull to git, seahorse is being used to capture my username/password, rather than whatever more helpful tool was appearing before. I’ve not consciously changed any settings to have this happen, and I can’t seem to make it stop. To make matters worse, it uses https rather than ssh, which git has just now disallowed. On this last point, I’m sure this is configurable, but I’d rather not learn how to configure a program that I never invited in in the first place. I have the following in my configuration.nix:
which you would think might make things quite unambiguous that seahorse hasn’t been invited to the party.
However, when I do echo $SSH_ASKPASS, I get /nix/store/s0syfivjsnrkwk0xl750k3s4smif8sa9-seahorse-40.0/libexec/seahorse/ssh-askpass. I can’t see where this is even being set - I’ve tried to grep for it in my config but get nothing.
Probably the mature response at this point is to just get used to using seahorse, but I’m feeling a little aggrieved about having it show up uninvited and first I’d like to try to just get rid of it. Can anyone offer any suggestions?
To correct myself, the decision to use https vs ssh is set in the individual repo’s .git/config file and isn’t really seahorse’s fault (some things aren’t). Switching the repo config to use ssh basically fixes everything I’m complaining about here. Seahorse continues its unwelcome existence on my system but I can live with that.
I just tried this (without having any idea what it does) - no window appears, though. It didn’t complete but it also didn’t seem to do anything - I Ctrl+C’ed it after a few seconds.
Sorry, seems like I shut it down too early - it did eventually finish with
48355
direnv: error LoadConfig() Getwd failed: getwd: no such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory```
What does running nixos-option programs.ssh.askPassword output? It should tell not only its current value, but also where it was defined. In this case I would expect it to say:
...
Defined by:
[ "/etc/nixos/configuration.nix" ]
Thanks for the response. It is defined in configuration.nix, and interestingly, its value is .../libexec/x11-ssh-askpass. However, the SSH_ASKPASS environment variable is still pointing to seahorse.