diff options
-rw-r--r-- | src/jarabe/intro/window.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jarabe/intro/window.py b/src/jarabe/intro/window.py index 3975900..bce16ea 100644 --- a/src/jarabe/intro/window.py +++ b/src/jarabe/intro/window.py @@ -14,6 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +from ctypes import cdll import os import logging from gettext import gettext as _ @@ -33,6 +34,10 @@ from jarabe.intro import colorpicker _BACKGROUND_COLOR = style.COLOR_WHITE +def sync(): + libc = cdll.LoadLibrary("libc.so.6") + libc.sync() + def create_profile(name, color=None, pixbuf=None): if not pixbuf: path = os.path.join(os.path.dirname(__file__), 'default-picture.png') @@ -256,6 +261,7 @@ class IntroWindow(gtk.Window): def _create_profile_cb(self, name, color): create_profile(name, color) + sync() gtk.main_quit() return False |