• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IJHack / QtPass / 25588780598 / 1
55%
main: 55%

Build:
DEFAULT BRANCH: main
Ran 09 May 2026 02:16AM UTC
Files 72
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 May 2026 02:11AM UTC coverage: 28.31% (+0.3%) from 28.034%
25588780598.1

push

github

web-flow
feat: auto-probe + override for SSH_AUTH_SOCK (closes #543) (#1438)

* feat: auto-probe + override for SSH_AUTH_SOCK (closes #543)

Long-standing pain point: GUI-launched QtPass doesn't inherit shell-set
environment variables (SSH_AUTH_SOCK, GPG_TTY, etc.) from .bashrc/.zshrc.
Users with gpg-agent's SSH support — particularly YubiKey + GPG SSH auth —
hit "git push/pull" failures when they launch QtPass from the GNOME app
launcher / macOS Dock instead of a terminal. Issue #543 documents this
across multiple distros and the macOS side.

Resolution:

New Util::initialiseSshAuthSock(), called from main() before any
subprocess work happens. Resolution order:

1. If SSH_AUTH_SOCK is already set (terminal launch, .desktop Exec=
   override, parent process), do nothing.
2. If a sshAuthSockOverride setting is configured in QtPass, use it.
3. Probe `gpgconf --list-dirs agent-ssh-socket` (canonical for gpg-agent's
   SSH support).
4. On macOS, fall back to `launchctl getenv SSH_AUTH_SOCK`.

Sets via qputenv() so child processes (git, pass) inherit it.

Settings:

- New QtPassSettings::getSshAuthSockOverride() / setSshAuthSockOverride()
  with corresponding settingsconstants::sshAuthSockOverride key.
- New configdialog.ui field on the Programs tab — labelled
  "SSH_AUTH_SOCK override:" with placeholder text "(auto-probe via
  gpgconf)" and a tooltip referencing the issue. Empty value means
  "auto-probe is fine".

Tests (tests/auto/util/tst_util.cpp):

- sshAuthSockOverrideRoundtrip — getter/setter persistence
- sshAuthSockOverrideEmptyByDefault — default value behaviour
- initialiseSshAuthSockHonoursExistingEnv — env-already-set wins over
  override and over auto-probe (terminal-launch users keep their setup)
- initialiseSshAuthSockUsesOverride — override applied when env unset
- initialiseSshAuthSockOverrideWinsOverProbe — override beats gpgconf
  even on systems where gpgconf would have provided a value
- initialiseSshAuthSockNoOverrideNoEnvProbes — auto-probe... (continued)

1886 of 6662 relevant lines covered (28.31%)

27.18 hits per line

Source Files on job 25588780598.1
  • Tree
  • List 72
  • Changed 7
  • Source Changed 7
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25588780598
  • 7c8b3680 on github
  • Prev Job for on main (#25581862009.1)
  • Next Job for on main (#25612087677.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc