From c12e341cb69f6f829b41a59a257f51cd05761fcc Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Sun, 16 Feb 2020 11:33:35 +0100 Subject: [PATCH] Fix scrotify to work with new PGP setup --- bin/scrotify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/scrotify b/bin/scrotify index 8a5c097..2a66da6 100755 --- a/bin/scrotify +++ b/bin/scrotify @@ -19,8 +19,8 @@ options = { # Apparently the keyring variables cannot be accessed from scripts that run # from i3's exec tool, so we have to manually set the socket here. -ENV['SSH_AUTH_SOCK'] = '/tmp/ssh-agent.sock.1000' - +sock = `gpgconf --list-dirs agent-ssh-socket`.strip +ENV['SSH_AUTH_SOCK'] = sock OptionParser.new do |opts| opts.banner = "Usage: #{$0} [options]" -- 2.51.2