Thunar's Open Terminal Here is missing the SSH_AUTH_SOCK environment variable

Bug #1389964 reported by Forest
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thunar (Ubuntu)
Fix Released
Undecided
Unassigned
xfce4-session (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I launch xfce4-terminal from Xfce's Applications menu, the terminal preserves the SSH_AUTH_SOCK environment variable, and I can ssh using my key to authenticate with no trouble.

When I launch it from Thunar's Open Terminal Here menu, SSH_AUTH_SOCK is missing from the environment, so I have to manually enter my passphrase to use ssh, scp, or any program that uses them (like git push). Yuck.

The behavior of the first-opened terminal window persists into all subsequent terminal windows, since they reuse the existing xfce4-terminal process. So, if you're testing, be sure to close all terminal windows first.

Revision history for this message
Forest (foresto) wrote : Re: Thunar's Open Terminal Here strips the SSH_AUTH_SOCK environment variable

Possibly related, but not necessarily the same bug:
https://bugzilla.xfce.org/show_bug.cgi?id=10806

summary: - Thunar's Open Terminal Here strips SSH_AUTH_SOCK environment variable
+ Thunar's Open Terminal Here strips the SSH_AUTH_SOCK environment
+ variable
Revision history for this message
Forest (foresto) wrote :

Chasing this down a bit further:

It looks like this happens because SSH_AUTH_SOCK is not set in the "Thunar --daemon" process that persists even when I close all Thunar windows. I guess that process must get launched during xfce session setup, before SSH_AUTH_SOCK makes it into the session environment. If I kill that process and launch a foreground instance of Thunar, Open Terminal Here launches a terminal with SSH_AUTH_SOCK intact.

So, I suppose the next questions are:
What is launching Thunar --daemon?
What is copying the SSH_AUTH_SOCK environment variable into the session?
How do we get these things to happen in the right order?

Forest (foresto)
summary: - Thunar's Open Terminal Here strips the SSH_AUTH_SOCK environment
+ Thunar's Open Terminal Here is missing the SSH_AUTH_SOCK environment
variable
description: updated
description: updated
Revision history for this message
Alex Dueppen (adueppen) wrote :

This issue doesn't seem to be occurring as of the 20160110 Xubuntu ISO (Thunar 1.6.10)

Revision history for this message
Forest (foresto) wrote :

I'm using thunar 1.6.10-1 on xubuntu 15.10, and the bug is still present.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

The Xfce session launches "Thunar --daemon" on session start.

https://git.xfce.org/xfce/xfce4-session/tree/settings/xfce4-session.xml

Is this bug still present in 18.04 or 18.10?

Changed in thunar (Ubuntu):
status: New → Incomplete
Revision history for this message
Forest (foresto) wrote :

Yes, still present in 18.04.

Changed in thunar (Ubuntu):
status: Incomplete → New
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

This report appears to be related:
https://bugzilla.xfce.org/show_bug.cgi?id=13486

Revision history for this message
Sean Davis (bluesabre) wrote :

Reportedly fixed upstream in version 4.13.1.

Changed in xfce4-session (Ubuntu):
status: New → Fix Released
Sean Davis (bluesabre)
Changed in thunar (Ubuntu):
status: New → Fix Released
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.