From 730609325ef760c18aada007f2fe18173d0e01b9 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 17 Aug 2024 08:36:14 -0700 Subject: [PATCH] adding another hack for cosmic desktop --- .bash_profile-cosmic | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .bash_profile-cosmic diff --git a/.bash_profile-cosmic b/.bash_profile-cosmic new file mode 100644 index 0000000..90b33f8 --- /dev/null +++ b/.bash_profile-cosmic @@ -0,0 +1,5 @@ +# The alpha release of cosmic doesn't support xdg autostart so this is a hack to handle my ssh-agent +if [ "${XDG_CURRENT_DESKTOP}" == "COSMIC" ]; then + ps -ef | grep "ssh-agent" |grep -v grep > /dev/null || ssh-agent -a /run/user/1000/ssh-agent.socket + export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket +fi