/etc/X11/Xsession.d/98xbindkeys - breaks ssh agent support

Bug #930879 reported by Jamin W. Collins
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xbindkeys (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Starting xbindkeys via the provided Xsession startup script breaks ssh agent support. The daemon is started before the gnome keyring and as a result any terminal started via xbindkeys is lacking the proper environment variables for interacting with the ssh agent. This bug has been reported against Debian here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628654. I suspect the xbindkey users in this report https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/839444 are experiencing the same issue.

The presence of this startup script will break a number of previously working configurations on upgrade. While it is a nice idea, it should be seriously rethought or reworked.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: xbindkeys 1.8.5-1
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Feb 11 23:31:01 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xbindkeys
UpgradeStatus: Upgraded to oneiric on 2012-01-17 (25 days ago)

Revision history for this message
Jamin W. Collins (jcollins) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xbindkeys (Ubuntu):
status: New → Confirmed
Revision history for this message
Ari Fogel (arifogel) wrote :

This bug drove me crazy for hours thinking there was something wrong with lightdm. I was able to confirm that this bug was the problem after running a terminal without using my xbindkeys shortcut and noting that the appropriate gnome-keyring environment variables were set.

This affects me, and I am using Precise Pangolin (Ubuntu 12.04 amd64)

Workaround:
1. Create .xbindkeys.noauto file in home directory: touch ~/.xbindkeys.noaut
2. Add xbindkeys to local user's startup applications using gnome-session-properties

Revision history for this message
Ari Fogel (arifogel) wrote :

Typo above. Should be:
1. Create .xbindkeys.noauto file in home directory: touch ~/.xbindkeys.noauto

Revision history for this message
Jamin W. Collins (jcollins) wrote :

I've moved the /etc/X11/Xsession.d/98xbindkeys to /usr/bin/xbindkeys_autostart, made it executable, and use the attached desktop file (placed in /etc/xdg/autostart/).

This provides the same override logic as before, but starts xbindkeys after the user's environment has been properly setup. Thus, any terminals launched from xbindkeys have the proper references to agents (like SSH).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.