From 8361ca82ae89ce8b038a4faa8274b2b88cfe81a6 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Sat, 11 Oct 2008 16:19:59 +0000 Subject: Use gconf for the profile --- (limited to 'bin') diff --git a/bin/sugar-session b/bin/sugar-session index ca1c02e..4f8dfa7 100644 --- a/bin/sugar-session +++ b/bin/sugar-session @@ -18,6 +18,7 @@ import sys import os import gettext +import gconf import gtk import gobject @@ -60,8 +61,11 @@ def main(): intro.check_profile() - if get_profile().timezone is not None: - os.environ['TZ'] = get_profile().timezone + client = gconf.client_get_default() + timezone = client.get_string('/desktop/sugar/date/timezone') + + if timezone is not '': + os.environ['TZ'] = timezone service.start_all() -- cgit v0.9.1