Browse Source

Add plasma-desktop script to properly start ssh-agent while usign Wayland

Emmanuel Bouthenot 2 years ago
parent
commit
70683371f4

+ 8 - 0
.config/plasma-workspace/env/ssh-agent.sh

@@ -0,0 +1,8 @@
+#!/bin/sh
+
+SSHAGENT=/usr/bin/ssh-agent
+
+if [ -x "${SSHAGENT}" ] && [ -z "${SSH_AUTH_SOCK}" ]; then
+    eval "$(${SSHAGENT})"
+fi
+

+ 8 - 0
.config/plasma-workspace/shutdown/ssh-agent.sh

@@ -0,0 +1,8 @@
+#!/bin/sh
+
+SSHAGENT=/usr/bin/ssh-agent
+
+if [ -x "${SSHAGENT}" ] && [ -n "${SSH_AUTH_SOCK}" ]; then
+    eval "$(${SSHAGENT} -k)"
+fi
+