We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4598b7c commit 2441be2Copy full SHA for 2441be2
data/start-cosmic
@@ -47,10 +47,15 @@ fi
47
# -> check if /run/user/$UID/keyring exists
48
if [ -d "/run/user/$(id -u)/keyring" ]; then
49
50
- # start pkcs11, secrets, and ssh components
51
- /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
52
- export SSH_AUTH_SOCK="/run/user/$(id -u)/keyring/ssh"
+ # Use PATH lookup instead of hardcoding /usr/bin
+ if command -v gnome-keyring-daemon >/dev/null 2>&1; then
+ eval "$(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
53
+ else
54
+ echo "gnome-keyring-daemon not found in PATH" >&2
55
+ fi
56
57
+ # Set SSH_AUTH_SOCK to the standard gnome-keyring socket
58
+ export SSH_AUTH_SOCK="/run/user/$(id -u)/keyring/ssh"
59
fi
60
61
# Run cosmic-session
0 commit comments