After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674995 - Programs launched by custom shortcuts -- LC_* locale envvars missing
Programs launched by custom shortcuts -- LC_* locale envvars missing
Status: RESOLVED DUPLICATE of bug 693381
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
3.4.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-27 20:20 UTC by Mantas Mikulėnas (grawity)
Modified: 2013-02-16 14:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mantas Mikulėnas (grawity) 2012-04-27 20:20:21 UTC
I have my system locale as "English (United States)", but have also chosen "English (United Kingdom)" [en_GB] under "System Settings → Region & Language → Formats". This normally causes the following environment variables to be set:

LANG=en_US.UTF-8
LC_MEASUREMENT=en_GB.utf8
LC_MONETARY=en_GB.utf8
LC_NUMERIC=en_GB.utf8
LC_TIME=en_GB.utf8

$LANG is set system-wide by /etc/profile, while the four $LC_* variables are set by gnome-settings-daemon for my own user account.

However, for programs that are launched using the "System Settings → Keyboard → Custom shortcuts" function, the $LC_* variables are missing. They aren't part of gnome-settings-daemon's own environment, either.

Programs launched through gnome-shell receive the correct environment.

This may be related to bug #662528.
Comment 1 Bastien Nocera 2012-09-21 16:19:08 UTC
Which version of gnome-settings-daemon did you test with?
Comment 2 Mantas Mikulėnas (grawity) 2013-02-16 14:01:08 UTC

*** This bug has been marked as a duplicate of bug 693381 ***