X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=filesystem%2Fetc%2Fprofile.d%2Fenvironment.sh;h=9e4feef6a732f8c93227d01794737e7f3f3a86a6;hp=80a1d5ae911660b9a799199b18acbeb9c0dbc206;hb=602a1874cc11a7d371890cdae4c0dc982267ea89;hpb=8fc333f8c2d69d0792f3742d4f4351e7acb07d9e 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