[Sugar-devel] [PATCH sugar] Set the SUGAR_LANGPACKDIR env variable when reading the GConf key, part of SL #3654
Simon Schampijer
simon at schampijer.de
Mon Jun 4 12:51:43 EDT 2012
We can not mix static and dynamic gconf bindings in one process, |
export path as env variable so it can be read by sugar-activity
when launching the activity.
Signed-off-by: Simon Schampijer <simon at laptop.org>
---
bin/sugar-session | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bin/sugar-session b/bin/sugar-session
index 40c9db7..40f8905 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -239,6 +239,12 @@ def main():
if timezone is not None and timezone:
os.environ['TZ'] = timezone
+ # can not mix static and dynamic gconf bindings in one process,
+ # export path as env variable, SL #3654
+ langpackdir = client.get_string('/desktop/sugar/i18n/langpackdir')
+ if langpackdir is not None and langpackdir:
+ os.environ['SUGAR_LANGPACKDIR'] = langpackdir
+
set_fonts()
# this must be added early, so that it executes and unfreezes the screen
--
1.7.10.2
More information about the Sugar-devel
mailing list