Bug 12328 - Gnome Live ISOs don't respect chosen locales
Summary: Gnome Live ISOs don't respect chosen locales
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard: 4RC
Keywords:
Depends on:
Blocks: 11704
  Show dependency treegraph
 
Reported: 2014-01-16 19:06 CET by Marja Van Waes
Modified: 2014-08-09 17:20 CEST (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
journalctl -a after French and Paris were chosen (183.51 KB, text/plain)
2014-01-16 19:06 CET, Marja Van Waes
Details

Description Marja Van Waes 2014-01-16 19:06:40 CET
Created attachment 4802 [details]
journalctl -a  after French and Paris were chosen

When starting a Live Gnome session from DVD (pre-RC, 8th round of isos, 64bits), the language and location choice are no longer respected once Gnome starts.

doing "locale" shows that the setting is "en_US" for everything.

This has been tested with French/Paris, Dutch/Amsterdam and one more.

The KDE LiveDVD does *not* have this problem.
Marja Van Waes 2014-01-16 19:08:21 CET

Whiteboard: (none) => 4RC

Comment 1 claire robinson 2014-01-17 10:40:17 CET
Confirmed with en_GB. The Live system is using en_US.

ie. Spellcheck in LO, currency, date format etc

I'll recheck LiveCD to see if it occurs there too.

CC: (none) => eeeemail

Comment 2 Marja Van Waes 2014-01-17 10:57:15 CET
Last night's GNOME 64 LiveDVD, tried with French/Paris
Every locale setting is again en_US after having reached the Gnome desktop :-(
Comment 3 claire robinson 2014-01-17 11:18:52 CET
LiveCD is also affected, formats for date, measurements, currency etc are en_US in gnome settings and firefox spellcheck is using en_US.

Blocks: (none) => 11704
Summary: Gnome LiveDVD doesn't respect chosen locales => Gnome Live ISOs don't respect chosen locales

Comment 4 claire robinson 2014-01-17 11:23:29 CET
gnome-session[2426]: ** (gnome-control-center:2866): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did n
gnome-session[2426]: (gst-plugin-scanner:2875): GStreamer-CRITICAL **: gst_structure_new_empty: assertion 'gst_structure_validate_name (name)' failed
gnome-session[2426]: (gnome-control-center:2866): GnomeDesktop-CRITICAL **: gnome_get_language_from_locale: assertion '*locale != '\0'' failed
gnome-session[2426]: (gnome-control-center:2866): GnomeDesktop-CRITICAL **: gnome_get_country_from_locale: assertion '*locale != '\0'' failed
Comment 5 claire robinson 2014-01-17 14:07:22 CET
This only seems to affect live mode, marja could you confirm please.
Comment 6 Marja Van Waes 2014-01-17 15:28:42 CET
(In reply to claire robinson from comment #5)
> This only seems to affect live mode, marja could you confirm please.

indeed, after a live install from the boot menu (so not from a live session), this is fine.
I did keep unused locales, though, I'll try again to see what happens if I remove the "unused" ones
Comment 7 Marja Van Waes 2014-01-17 16:12:43 CET
after installing from a Live session (and removing unused locales), locales are OK, too, even if the install screens are all in English
Comment 8 Mageia Robot 2014-01-21 23:16:09 CET
commit c01b45c78de95b0f9dacf6930c58220280ff168b
Author: Colin Guthrie <colin@...>
Date:   Tue Jan 21 22:07:15 2014 +0000

    Ensure that GDM is reloaded on live media.
    
    With out this the locale settings are not reread and en_US is used for
    the whole session.
    
    I'm not 100% sure why the previous call now fails, but I suspect
    it could be due to /usr/sbin not being in the path due to /etc/
    profile not being sourced early on (i.e. in the gdm binary) and
    thus this command fails to run.
    
    mga#11582 mga#12328
---
 Commit Link:
   http://gitweb.mageia.org/software/build-system/draklive-config/commit/?id=c01b45c78de95b0f9dacf6930c58220280ff168b

 Bug links:
   Mageia
      https://bugs.mageia.org/show_bug.cgi?id=11582
      https://bugs.mageia.org/show_bug.cgi?id=12328
Comment 9 Colin Guthrie 2014-01-21 23:17:18 CET
I think the above commit *should* fix this once Thomas rebuilds the Live medias with the updated config.

CC: (none) => mageia

Comment 10 Thomas Backlund 2014-01-21 23:33:18 CET
Awsome, thanks.

btw, the "RUNNING_UNDER_GDM" is a flag/variable  set by gdm itself:
https://git.gnome.org/browse/gdm/tree/daemon/gdm-launch-environment.c#n291
Comment 11 Colin Guthrie 2014-01-21 23:56:56 CET
Yeah I found the RUNNING_UNDER_GDM env var in GDM after I made a comment about it.

There is an alternative to this fix which I've described in the other bug. Let me know if you'd prefer that one or if we should stick with this for now.
Comment 12 Thomas Backlund 2014-01-22 00:45:06 CET
Can you push the other fix so we can get a broad test of it.

Saving one gdm restart will make boot go faster, and less flickering.
Then I'll simply disable the installing of 99-dm-reload.xsetup for next iso build
Comment 13 Mageia Robot 2014-01-22 01:54:37 CET
commit 2fbb89f3fc1b8196f45c6bc02b006e47658f2be1
Author: Colin Guthrie <colin@...>
Date:   Wed Jan 22 00:51:50 2014 +0000

    Drop support for GDM_LANG.
    
    This is no longer needed/supported.
    
    mga#12328
---
 Commit Link:
   http://gitweb.mageia.org/software/forks/initscripts/commit/?id=2fbb89f3fc1b8196f45c6bc02b006e47658f2be1
Comment 14 Colin Guthrie 2014-01-22 02:11:35 CET
(In reply to Thomas Backlund from comment #12)
> Saving one gdm restart will make boot go faster, and less flickering.
> Then I'll simply disable the installing of 99-dm-reload.xsetup for next iso
> build

If you push initscripts and gdm they should contain the needed fixes to allow the dropping of 99-dm-reload.xsetup.
Comment 15 Thomas Backlund 2014-01-22 09:35:09 CET
Both pushed
Comment 16 Thomas Backlund 2014-01-24 21:17:27 CET
This bug is confirmed fixed

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 17 Manuel Hiebel 2014-08-09 17:20:15 CEST
looks to come back on the Mga5 alpha2 iso (needs to be confirmed)

Note You need to log in before you can comment on or make changes to this bug.