emersion / bups

Simple GUI for Bup, a very efficient backup system.
MIT License
95 stars 8 forks source link

Do not hardcode askpass path #20

Open emersion opened 8 years ago

emersion commented 8 years ago

The way you are hardcoding the path it seems to suggest it will only work with x11-ssh-askpass, and not one of the alternatives like openssh-askpass or lxqt-openssh-askpass. Not sure if there is a clever way to work around that.

zamber commented 7 years ago

Just hit that. Really annoying as I couldn't figure out that the other askpass alternatives don't symlink to /usr/lib/ssh/ssh-askpass. As a side fix x11-ssh-askpass should be set as an optional dependency for Arch along with encfs.

Aerilius commented 6 years ago

I worked around this (on Ubuntu Gnome) by symlinking sudo mkdir /usr/lib/ssh/; sudo ln -s /usr/lib/openssh/gnome-ssh-askpass /usr/lib/ssh/ssh-askpass There exists also /etc/alternatives/ssh-askpass which is probably the safer path to use?

mittwinter commented 6 years ago

On Gentoo, ssh-askpass is provided as /usr/lib64/misc/ssh-askpass which symlinks to /usr/bin/x11-ssh-askpass. So, I guess, unfortunately, actual location seems to be highly dependent on the distribution. Also, if I'm not mistaken, /etc/alternatives/... is debian-specific and only works on Debian and derivates.

da-n commented 6 years ago

Just to add to @Aerilius can use this for Seahorse sudo ln -s /usr/lib/seahorse/seahorse-ssh-askpass /usr/lib/ssh/ssh-askpass.