GNOME Bugzilla – Bug 685863
Export locale categories through D-Bus
Last modified: 2012-11-07 12:03:01 UTC
.
Created attachment 226158 [details] [review] Remember the original envvars when set over D-Bus
Created attachment 226159 [details] [review] Export original envvar's values through D-Bus Add Getenv() function for System Settings to lookup the original value of a particular variable, such as the session language.
Patches are only compile tested right now. They should allow implementing the ideas in bug 647373.
Why the word "original"? It's not the original environment gnome-session was started with, it's the environment gnome-session currently has. Also, why the separate hash table instead of just using g_getenv ?
Created attachment 226231 [details] [review] Export original envvar's values through D-Bus Add Getenv() function for System Settings to lookup the value of a particular environment variable, such as the session language.
Created attachment 226232 [details] [review] Export envvars value through D-Bus Add Getenv() function for System Settings to lookup the value of a particular environment variable, such as the session language.
(In reply to comment #4) > Why the word "original"? It's not the original environment gnome-session was > started with, it's the environment gnome-session currently has. Also, why the > separate hash table instead of just using g_getenv ? You're right, seeing as we can't change those values after the initialisation phase. Simplified the code, and changed the text to not mention "original".
Comment on attachment 226232 [details] [review] Export envvars value through D-Bus talked with hadess about this on IRC. he's going to use setlocale(LC_MESSAGES, NULL) from the panel instead to avoid the unnecessary IPC, and having to deal with inheritance.
Created attachment 227898 [details] [review] Export locale categories through D-Bus Add GetLocale() function for System Settings to lookup the value of a particular locale setting, such as the session language.