public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xorg-x11-xinit] f45: xinitrc-common: prefer gcr-ssh-agent socket over wrapping the session in ssh-agent
@ 2026-10-20 14:38 Leigh Scott
  0 siblings, 0 replies; only message in thread
From: Leigh Scott @ 2026-10-20 14:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xorg-x11-xinit
Branch : f45
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=f45

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 14:38 [rpms/xorg-x11-xinit] f45: xinitrc-common: prefer gcr-ssh-agent socket over wrapping the session in ssh-agent Leigh Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox