[Libreoffice-commits] core.git: desktop/source

Markus Mohrhard markus.mohrhard at googlemail.com
Wed Aug 2 05:39:38 UTC 2017


 desktop/source/app/app.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 74a3a035143b471c3edd2392b44c68c8695dcc23
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed Aug 2 05:39:40 2017 +0200

    updater: flush the configuration changes before we call execv
    
    Without this the external configuration writer thread might not have
    written the config yet.
    
    Change-Id: I361fd8a7ee102a8ca50899fb644a0745ed3386ca
    Reviewed-on: https://gerrit.libreoffice.org/40659
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index c6a467682496..fe89eeb3b628 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1436,6 +1436,10 @@ int Desktop::Main()
                 officecfg::Office::Update::Update::OldBuildID::set(aBuildID, batch);
                 officecfg::Office::Update::Update::UpdateRunning::set(true, batch);
                 batch->commit();
+
+                // make sure the change is written to the configuration before we start the update
+                css::uno::Reference<css::util::XFlushable> xFlushable(css::configuration::theDefaultProvider::get(xContext), UNO_QUERY);;
+                xFlushable->flush();
                 // avoid the old oosplash staying around
                 CloseSplashScreen();
                 update();


More information about the Libreoffice-commits mailing list