Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #1568: dlo_9612.patch

File dlo_9612.patch, 0.9 KB (added by sayamindu, 4 years ago)

Proposed patch

  • src/jarabe/intro/window.py

    diff --git a/src/jarabe/intro/window.py b/src/jarabe/intro/window.py
    index 3975900..bce16ea 100644
    a b  
    1414# along with this program; if not, write to the Free Software 
    1515# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    1616 
     17from ctypes import cdll 
    1718import os 
    1819import logging 
    1920from gettext import gettext as _ 
     
    3334 
    3435_BACKGROUND_COLOR = style.COLOR_WHITE 
    3536 
     37def sync(): 
     38    libc = cdll.LoadLibrary("libc.so.6")  
     39    libc.sync() 
     40 
    3641def create_profile(name, color=None, pixbuf=None): 
    3742    if not pixbuf: 
    3843        path = os.path.join(os.path.dirname(__file__), 'default-picture.png') 
     
    256261 
    257262    def _create_profile_cb(self, name, color): 
    258263        create_profile(name, color) 
     264        sync() 
    259265        gtk.main_quit() 
    260266 
    261267        return False