From 921982f302da295b02c712aeb0f29b930efe83d4 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 24 Nov 2024 11:54:28 -0500 Subject: Make Plasma autostart run ssh-add instead of systemd since Kwallet must be running for ssh-add to succeed Alternatively, I could add `AddKeysToAgent yes` to `.ssh/config` but this breaks Git signing and (I think, but haven't checked) Dolphin SFTP. Also, then it won't be in my dotfiles. --- autostart/ssh-add.desktop | 4 ++++ systemd/user/ssh-agent.service.d/override.conf | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 autostart/ssh-add.desktop delete mode 100644 systemd/user/ssh-agent.service.d/override.conf diff --git a/autostart/ssh-add.desktop b/autostart/ssh-add.desktop new file mode 100644 index 0000000..887a80a --- /dev/null +++ b/autostart/ssh-add.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=ssh-add +Exec=ssh-add +Type=Application diff --git a/systemd/user/ssh-agent.service.d/override.conf b/systemd/user/ssh-agent.service.d/override.conf deleted file mode 100644 index d26f976..0000000 --- a/systemd/user/ssh-agent.service.d/override.conf +++ /dev/null @@ -1,4 +0,0 @@ -[Service] -# Wait so ssh-agent can start up -ExecStartPost=sleep 0.1 -ExecStartPost=ssh-add -- cgit v1.2.3-70-g09d2