mostly t11 fixes
[distro-setup] / filesystem / etc / profile.d / environment.sh
index 80a1d5ae911660b9a799199b18acbeb9c0dbc206..9e4feef6a732f8c93227d01794737e7f3f3a86a6 100644 (file)
@@ -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