public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Leigh Scott <leigh123linux@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xorg-x11-xinit] rawhide: xinitrc-common: prefer gcr-ssh-agent socket over wrapping the session in ssh-agent
Date: Tue, 20 Oct 2026 14:35:18 GMT [thread overview]
Message-ID: <179250691814.1.13621032537122947314.rpms-xorg-x11-xinit-41dfe6c1bebe@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xorg-x11-xinit
Branch : rawhide
Commit : 41dfe6c1bebed54ce7e82f1b7b303eccb6b3f282
Author : Leigh Scott <leigh123linux@gmail.com>
Date : 2026-10-19T19:19:38+01:00
Stats : +7/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/xorg-x11-xinit/c/41dfe6c1bebed54ce7e82f1b7b303eccb6b3f282?branch=rawhide
Log:
xinitrc-common: prefer gcr-ssh-agent socket over wrapping the session in ssh-agent
---
diff --git a/xinitrc-common b/xinitrc-common
index 6509c80..c118eee 100644
--- a/xinitrc-common
+++ b/xinitrc-common
@@ -51,6 +51,13 @@ for file in /etc/X11/xinit/xinitrc.d/* ; do
. $file
done
+# If a systemd-managed ssh-agent socket (gcr-ssh-agent) is already listening,
+# use it instead of wrapping the session in a second ssh-agent.
+if [ -z "$SSH_AUTH_SOCK" ] && [ -n "$XDG_RUNTIME_DIR" ] && [ -S "$XDG_RUNTIME_DIR/gcr/ssh" ]; then
+ SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
+ export SSH_AUTH_SOCK
+fi
+
# Prefix launch of session with ssh-agent if available and not already running.
if [ -z "$SSH_AGENT" ] && [ -z "$SSH_AUTH_SOCK" ] && [ -z "$SSH_AGENT_PID" ] && [ -x /usr/bin/ssh-agent ]; then
if [ "x$TMPDIR" != "x" ]; then
reply other threads:[~2026-10-20 14:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179250691814.1.13621032537122947314.rpms-xorg-x11-xinit-41dfe6c1bebe@fedoraproject.org \
--to=leigh123linux@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox