X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fprofile.d%2Fenvironment.sh;h=9e4feef6a732f8c93227d01794737e7f3f3a86a6;hb=5c8530653c87af3757a2c649772e0405bcd143a0;hp=80a1d5ae911660b9a799199b18acbeb9c0dbc206;hpb=ce4cacd36c5b5babeea85d0f93771017e6169180;p=distro-setup diff --git a/filesystem/etc/profile.d/environment.sh b/filesystem/etc/profile.d/environment.sh index 80a1d5a..9e4feef 100644 --- a/filesystem/etc/profile.d/environment.sh +++ b/filesystem/etc/profile.d/environment.sh @@ -116,6 +116,18 @@ for _file in $(pgrep -a '^ssh-agent$' | sed -r 's/.*-a *([^ ]+).*/\1/'); do fi done +# in t11, user ssh-agent once again stopped working, it isn't started anymore +# by i3. So, enough is enough, I just made a service that will try to +# start it all the time for the user. If the var isn't set by the above, +# just set them to the values I know are in the service. +if ! test "$SSH_AUTH_SOCK"; then + if [ "$EUID" == 0 ]; then + export SSH_AUTH_SOCK=/run/openssh_agent + else + export SSH_AUTH_SOCK=/run/user/1000/openssh_agent + fi +fi + # background: # ubuntu has 002 for non-system users, debian has 022. 002 makes groups