mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
43 stars 48 forks source link

SSH_AUTH_SOCK overwritten by mate-settings-daemon #302

Closed kenogo closed 4 years ago

kenogo commented 4 years ago

Expected behaviour

I want to set SSH_AUTH_SOCK with ~/.pam_environment so that I can use gpg-agent as the SSH agent rather than GNOME keyring.

Actual behaviour

A common problem is that GNOME keyring is autostarted by the desktop environment with SSH support, which overwrites the environment variable, so I disabled this autostart, but the environment variable was still overwritten. It finally turned out that disabling the autostart of mate-settings-daemon stopped the environment variable from being overwritten. However, this is obviously not a good solution as I want to keep my settings.

Steps to reproduce the behaviour

Create ~/.pam_environment with the content

SSH_AUTH_SOCK DEFAULT=${HOME}/.gnupg/S.gpg-agent.ssh

log out and back into MATE, and observe that the environment variable is being set to $XDG_RUNTIME_DIR/keyring/ssh instead of the value specified in .pam_environment. Go into settings and disable the autostart of mate-settings-daemon, and you'll see that the environment variable is now being set correctly.

MATE general version

1.12.1

Package version

1.12.1

Linux Distribution

Trisquel GNU/Linux 8.0 Flidas

lukefromdc commented 4 years ago

That is a very old and no longer supported version of MATE. The current stable version is 1.22 and development is now on 1.23. If you update to either and this still occurs please let us know

kenogo commented 4 years ago

Okay, closing this for now then.