[Libreoffice-commits] .: Branch 'libreoffice-3-3' - shell/source
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Thu Dec 30 06:26:18 PST 2010
shell/source/unix/exec/shellexec.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit e88835014fe5475cd019c0512a784cad8c3a4c25
Author: Jan Holesovsky <kendy at suse.cz>
Date: Thu Dec 30 02:33:18 2010 +0100
Do not block when launching firefox, fdo#32427.
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 224452a..739dc44 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -282,7 +282,13 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
pDesktopLaunch = NULL;
}
- OString cmd = aBuffer.makeStringAndClear();
+ OString cmd =
+#ifdef LINUX
+ // avoid blocking (call it in background)
+ OStringBuffer().append( "( " ).append( aBuffer ).append( " ) &" ).makeStringAndClear();
+#else
+ aBuffer.makeStringAndClear();
+#endif
if ( 0 != pclose(popen(cmd.getStr(), "w")) )
{
int nerr = errno;
More information about the Libreoffice-commits
mailing list