Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 630330

Summary: x11-misc/lightdm-gtk-greeter-2.0.1-r1: locale menu in doesn't set LC_xxx environment variables, causes language mixtures
Product: Gentoo Linux Reporter: Vince C. <vincent.cadet>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
/etc/xprofile

Description Vince C. 2017-09-08 10:57:07 UTC
Created attachment 493214 [details]
emerge --info

The issue is observed shortly after a fresh Gentoo installation (from scratch).

Selecting a locale from lightdm-gtk-greeter locale menu only has partial effect on locales with interface elements, e.g. desktop icons all shown in the expected user language but the trash icon is shown in the system locale, tooltips from the "User action buttons" icon shown in the expected user language but the dialog is shown in the system locale, Thunar interface is entirely shown in the system locale, even when launched from xfce4-terminal, which shows the expected locale settings...

If I log from a text terminal (e.g. tty2), set LC_xxx variables to my preference and run `startxfce4` then *all* of the interface elements are displayed in the expected locale.

Inspection of all my user processes show none of the LC_xxx variables are set if I log in from LIghtDM (graphical interface). Only LC_COLLATE is set but it comes from (the system-generated) /etc/env.d/02locale file.

FTR using OpenRC, not systemd.
Comment 1 Jonas Stein gentoo-dev 2017-09-08 14:16:27 UTC
Thank you for the report. Please *attach* the logfiles,
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29

Please add the full package name in the beginning of the title.
Comment 2 Vince C. 2017-09-09 09:35:28 UTC
(In reply to Jonas Stein from comment #1)
> Thank you for the report. Please *attach* the logfiles,
> https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-
> time_bug_.28emerge_failed.29

Hum, there's no failing emerge, it compiles, installs and works normally. It's just a feature that — I believe — is not complete. I'm afraid I have no log file to show, sorry. However I do have a working solution, which I've just posted.

> Please add the full package name in the beginning of the title.

As far as I remember, all of them, which I have worked with so far. I'm just mentioning the one one my machine at the time of writing this post.
Comment 3 Vince C. 2017-09-09 09:41:56 UTC
Created attachment 493502 [details]
/etc/xprofile

/etc/xprofile is one of the session initialization scripts lightdm looks for when starting a session. The submitted script here tests and sets locale-related environment variables when lightdm starts an xfce session — I believe — on a non-systemd machine. Anyway I'm not sure of the latter condition. I haven't tested other desktop environments than Xfce.