summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorOliver Braun <obr@openoffice.org>2001-06-27 05:38:56 +0000
committerOliver Braun <obr@openoffice.org>2001-06-27 05:38:56 +0000
commite8a43354696fff94651712d84de260068ed04956 (patch)
treeb23eac82997b0801f7198028ca4c0d592de4475f /shell
parent9f2f8a302e2ab1d7be07044951583a55c745b8e6 (diff)
#88295# convert handler to system path
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/exec/shellexec.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index cae3d4f2b00e..cbce3163a66b 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shellexec.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: obr $ $Date: 2001-06-26 15:09:51 $
+ * last change: $Author: obr $ $Date: 2001-06-27 06:38:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -292,12 +292,14 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
}
}
- sal_Int32 nLength = aHandler.getLength();
- if( nLength )
+ if( aHandler.getLength() )
{
+ // handler may be stored as file URL
+ FileBase::getSystemPathFromFileURL( aHandler, aHandler );
+
// due to a possible convertion to file url,
// rebuild command line from scratch
- OUStringBuffer aBuffer( nLength + aURL.getLength() + 1 );
+ OUStringBuffer aBuffer( aHandler.getLength() + aURL.getLength() + 1 );
aBuffer.append( aHandler );
aBuffer.append( (sal_Unicode) ' ' );