From 67e7847ff4c04a0c4148fd76b70576bbd4718f0a Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Fri, 20 Nov 2009 10:30:44 +0000 Subject: Call sync() after profile creation. Addresses dlo#9612 --- 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 -- cgit v0.9.1