Skip to content

Commit e0432f6

Browse files
its-mashclaude
andcommitted
fix: revert to two-step gnome-keyring setup for CI
The combined --unlock --start with 2>/dev/null broke keyring init entirely ("no result found"). Revert to the original two-step process but use eval "$()" for robust env var export and add debug logging to verify GNOME_KEYRING_CONTROL is set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 27112e1 commit e0432f6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/e2e-desktop.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,13 @@ jobs:
116116
if: matrix.os == 'ubuntu-latest'
117117
run: |
118118
# Start dbus session and unlock gnome-keyring with a dummy password for CI.
119-
# Use a single daemon invocation (--unlock + --start) and eval to export
120-
# GNOME_KEYRING_CONTROL so the keyring stays unlocked across all test specs.
119+
# Two-step process: unlock creates the login keyring, start exports env vars.
120+
# Use eval to robustly export GNOME_KEYRING_CONTROL so the keyring stays
121+
# accessible across all test specs (avoids "unlock prompt was dismissed").
121122
dbus-run-session -- bash -c '
122-
eval $(echo "test" | gnome-keyring-daemon --unlock --start --components=secrets 2>/dev/null)
123+
echo "test" | gnome-keyring-daemon --unlock --components=secrets
124+
eval "$(gnome-keyring-daemon --start --components=secrets)"
125+
echo "GNOME_KEYRING_CONTROL=$GNOME_KEYRING_CONTROL"
123126
sleep 1
124127
xvfb-run --auto-servernum pnpm test:e2e
125128
'

0 commit comments

Comments
 (0)