startkde ignores global Country setting

Bug #1099878 reported by Christian Affolter
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kde-workspace (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

/usr/bin/startkde ignores the Country setting outside the user's kdeglobals file (for example within /etc/kde4/kdeglobals) and sets them according to the system's locale. Specifying a default Country setting (which differs from the system's default locale) for all users on a system is therefore impossible.

For example, my system's locale is set to 'en_US.UTF-8' (for English messages), but I would like to have the KDE country set to 'ch' for Switzerland (for Swiss number, time, currency etc. settings) per default and not to 'us'.

Steps to reproduce:
Specify the country setting (here 'ch' for Switzerland) within a global kdeglobals file:
cat << EOF > /etc/kde4/kdeglobals
[Locale]
Country=ch
EOF
chmod 644 /etc/kde4/kdeglobals

Add a fresh user (which doesn't have a ~/.kde configuration directory already):
useradd -m test && passwd test

Login with the previously created user into KDE, and check the Country settings within Applications -> Settings -> System Settings -> Locale. The country will be set to "United States of America" instead of "Switzerland".

Environment:
Description: Ubuntu 12.04.1 LTS amd64
Release: 12.04

kde-workspace-bin:
  Installed: 4:4.8.5-0ubuntu0.2
  Candidate: 4:4.8.5-0ubuntu0.2

Please find attached a tiny patch which fixes this issue by checking if the country was set within any of the available kdeglobals files instead of only looking it up within the one in the user's home directory.

Tags: patch
Revision history for this message
Christian Affolter (c-affolter) wrote :
summary: - startkde ignores globale Country setting
+ startkde ignores global Country setting
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "startkde-honor-global-country-setting.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kde-workspace (Ubuntu):
status: New → Confirmed
Revision history for this message
Harald Sitter (apachelogger) wrote :

The manual country setting was removed entirely as the on-the-fly detection inside KLocale should now work as expected.

Changed in kde-workspace (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.