! 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 ignores temporary setted $LANG
Status:
RESOLVED: INVALID

Comments

Description c.buhtz 2016-08-14 09:48:00 CEST
I use Thunar/Xfce on Siduction GNU/Linux (Debian unstable).

I tried to create a international output (for another bug report) in english. But it is not possible. Thunar ignores $LANG. Calling Thunar like that:

[bash]
$ LANG=en_US.UTF-8 thunar
[/bash]

Open it i my systems default/main/primary language German. But I need it in English - just for that moment.

It is a usual way to start software like that when providing informations for other develoopers (e.g. in a bug report). So Thunar should respect users wishes here.
Comment 1 c.buhtz 2017-03-21 16:17:53 CET
This problem is still there and makes it hard to create good bug reports.
Comment 2 ToZ editbugs 2017-03-21 17:56:49 CET
Make sure the Thunar daemon isn't running - all thunar instances will use it's LANG settings.

thunar -q

...then: 

LANG=en_US.UTF-8 thunar
Comment 3 c.buhtz 2017-03-21 20:15:12 CET
I didn't knew that Thunar need a deamon. What is the exact name of it?

systemctl and ps -A doesn't find something like that.
Comment 4 c.buhtz 2017-03-21 20:17:36 CET
Your "thunar -q" doesn't give any output. But it is working after it.

thunar should use LANG primary if it is set and only in a secondary step it should ask its daemon.
Comment 5 Andre Miranda editbugs 2017-09-24 02:39:18 CEST
The purpose of the daemon is to speed up Thunar initialization every time you open a window.
As ToZ mentioned thunar -q asks the daemon to quit, and will not print any message, it's similar to pkill -i thunar.

When the daemon starts, it passes LANG to gettext, which is responsible L10N. Further calls to Thunar just poke the running daemon to show a new window, gettext has already been initialized.
Unfortunately what you ask is currently not possible or at least requires too much effort for little benefit IMHO.

Why don't you just set the desired locale system-wide? The only time I set LANG when launching an app is when I need to check translations, in that case thunar -q && LANG=... thunar works well. Do you have another use case that is hindered by the current behavior?
Comment 6 c.buhtz 2017-09-24 11:30:33 CEST
I understand the process now. As I told in the beginning I use this LANG-thing to produce better bug reports. e.g. Debug-Output or screenshots should be English and not German.

Now I know how to handle this. IMO the report can be closed now.
Comment 7 Andre Miranda editbugs 2017-09-24 17:03:02 CEST
Ok then, closing...

Bug #12765

Reported by:
c.buhtz
Reported on: 2016-08-14
Last modified on: 2017-09-24

People

Assignee:
Xfce Bug Triage
CC List:
4 users

Version

Version:
1.6.10

Attachments

Additional information