vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 4640575bd33c2d1010f3acd4fdf3cce510091716
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Apr 16 16:48:58 2019 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Apr 17 11:32:55 2019 +0200

    gtk3_kde5: No longer kill fpicker process on timeout
    
    In some observed cases, 100 ms were not enough for the separate
    'lo_kde5filepicker' process to terminate properly, in particular
    on slow or busy hardware.
    Drop the timeout here and just wait for the process to finish
    to avoid killing it unnecessarily, which could e.g. lead to file
    dialog settings/state not properly being saved by the native KDE
    Plasma QFileDialog (plasma-integration, e.g. in
    'KDEPlatformFileDialogHelper::saveSize'), so that the last
    used mode or size would not be remembered.
    
    The assumption is that the separate fpicker process should now
    properly finish in all cases, in particular since commit
    93815c2b04f1905e43c695caf5cc2c594bb897ce.
    
    Should that assumption not hold, let's rather fix the underlying
    issues than increasing the timeout here.
    
    Change-Id: I0a58c1425940fbfaecb5012a24fd9a0222cbaccb
    Reviewed-on: https://gerrit.libreoffice.org/70834
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc.cxx 
b/vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc.cxx
index 044a92d06c86..6ca43ee3a78e 100644
--- a/vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc.cxx
+++ b/vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc.cxx
@@ -139,9 +139,7 @@ Gtk3KDE5FilePickerIpc::~Gtk3KDE5FilePickerIpc()
         return;
 
     sendCommand(Commands::Quit);
-    TimeValue timeValue(std::chrono::milliseconds(100));
-    if (osl_joinProcessWithTimeout(m_process, &timeValue) != 
osl_Process_E_None)
-        osl_terminateProcess(m_process);
+    osl_joinProcess(m_process);
 
     if (m_inputWrite)
         osl_closeFile(m_inputWrite);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to