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

Bug #1389964 reported by Forest on 2014-11-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thunar (Ubuntu)
xfce4-session (Ubuntu)

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.

Possibly related, but not necessarily the same bug:

summary: - Thunar's Open Terminal Here strips SSH_AUTH_SOCK environment variable
+ Thunar's Open Terminal Here strips the SSH_AUTH_SOCK environment
+ variable
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) on 2014-11-13
summary: - Thunar's Open Terminal Here strips the SSH_AUTH_SOCK environment
+ Thunar's Open Terminal Here is missing the SSH_AUTH_SOCK environment
description: updated
description: updated
Alex Dueppen (adueppen) wrote :

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

Forest (foresto) wrote :

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

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

Is this bug still present in 18.04 or 18.10?

Changed in thunar (Ubuntu):
status: New → Incomplete
Forest (foresto) wrote :

Yes, still present in 18.04.

Changed in thunar (Ubuntu):
status: Incomplete → New

This report appears to be related:

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

Other bug subscribers

Remote bug watches

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