Skip to content

Thunar doesn't preserve environment.

Submitted by Kevin Cox

Assigned to Jannis Pohlmann

Link to original bug (#10806)

Description

When launching a program to open a file it appears that /some/ of the environment gets stripped. However, when using "Open Terminal Here" they are present. This seems really weird.

The following variables are missing.

GPG_AGENT_INFO GTK_MODULES MANAGERPID SSH_AGENT_PID SSH_AUTH_SOCK

I don't know what GTK_MODULES or MANAGERPID are but the other relate to my GPG/SSH auth agent and having them missing is very annoying.

Steps to Reproduce:

  • Right-click on a directory, select "Open Terminal Here".
  • Execute env | sort > ~/term.env
  • Right-clink on a file, select "Open With > Open With Other Application..."
  • Deselect "Use as default for this kind of file."
  • Enter xfce4-terminal -T into custom comment (-T is to catch the filename).
  • Execute env | sort > ~/open.env
  • Find mismatching variables in the two files. (diff open.env term.env)

It would be very helpful if these variables where present in executed programs.