! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar doesn't preserve environment.
Status:
RESOLVED: MOVED

Comments

Description Kevin Cox 2014-04-10 15:53:08 CEST
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.
Comment 1 Forest 2014-11-06 06:53:19 CET
I'm having a similar problem. In my case, SSH_AUTH_SOCK is preserved when launching xfce4-terminal from the applications menu, but stripped when launching it from Thunar's Open Terminal Here.
Comment 2 Forest 2014-11-06 07:28:09 CET
It's worth noting that the environment variable is only missing if the first terminal window I open is launched from Thunar. If I launch a terminal from the applications menu and leave it open, terminal windows subsequently launched from Thunar are not missing the environment variable. (This is almost certainly because the existing xfce4-terminal process is reused.) So, if you're testing, be sure to close all terminal windows first.
Comment 3 Git Bot editbugs 2020-05-26 23:17:54 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/75.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #10806

Reported by:
Kevin Cox
Reported on: 2014-04-10
Last modified on: 2020-05-26

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information