Bug 713955
| Summary: | SSH_AUTH_SOCK environment variable not present in terminals launched via keyboard shortcut | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Derrich Hafemann <dhafeman> |
| Component: | gnome-settings-daemon | Assignee: | Bastien Nocera <bnocera> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 17 | CC: | bfields, bnocera, bugzilla, cott, jkoten, maxamillion, maxx, mclasen, mkasik, mschick, nick, otaylor, pingou, pwallend, rebus, rstrode, samkraju, simon.n.lindgren, sjensen, stijn, thomas, walters |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-01 16:24:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Derrich Hafemann
2011-06-16 21:28:42 UTC
I can reproduce this on a fresh Fedora 16 install (didn't test fallback mode though). Is there any progress on this? Any workaround? This is a gnome-settings-daemon problem Issue persist on Fedora 17.
Terminal window which is open through Activities gets SSH_AUTH_SOCK and GPG_AGENT_INFO correctly exported with information from keyring.
When the application is opened through keyboard shortcut (Personal Menu/Keyboard/Shortcuts/Custom Shortcuts/Terminal) the only keyring setting is
GNOME_KEYRING_CONTROL=/home/user/.cache/keyring-YYXqFb
but what is missing is
GPG_AGENT_INFO=/home/user/.cache/keyring-YYXqFb/gpg:0:1
SSH_AUTH_SOCK=/home/user/.cache/keyring-YYXqFb/ssh
I am using this workaround in ~/.bashrc:
#GPG and SSH agent not exported when running terminal by shortcut
if [ -z "$GPG_AGENT_INFO" -a -z "$SSH_AUTH_SOCK" -a -n "$GNOME_KEYRING_CONTROL" ] ; then
#derive GPG and SSH agent info from GNOME_KEYRING_CONTROL
export GPG_AGENT_INFO="$GNOME_KEYRING_CONTROL/gpg:0:1"
export SSH_AUTH_SOCK="$GNOME_KEYRING_CONTROL/ssh"
fi
Workaround for Fedora 15 and 16 it was working to set the keyboard shortcut for running terminal using the old metacity settings.
#Run Terminal on Win+t
gconftool-2 -s /apps/metacity/global_keybindings/run_command_terminal --type string '<Mod4>t'
Best regards
Michal Ambroz
Appears to have been fixed very recently in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/839444 I assume the fix will be in the next gnome release as well, and will therefore show up in Fedora as well. I'm using Fedora 16 x86_64 edition with LXDE desktop. Today I updated my system and run this very same problem although in my case GPG_AUTH_INFO and SSH_AUTH_SOCK won't get populated regardless how I start the gnome-terminal (or any terminal). I came up with a similar workaround like Michal here. Upstream bug appears to be https://bugzilla.gnome.org/show_bug.cgi?id=662528, fixed with upstream commit a9388f70abc975da31c908 "media-keys: Get the environment from gnome-keyring", not yet in any tagged release as far as I can tell. According to the report on the gnome bugzilla, this is supposed to be fixed in gnome-session 3.4 but running gnome-session 3.4.2, I still have the problem: """ $ echo $SSH_AUTH_SOCK """ i can confirm this bug for f17 "gold". all updates applied. note: if a gnome-terminal is already running (through "activities") a keyboard shortcut will launch a new window off of that one. but if not, it starts a new one without agent access. This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |