summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorOliver Braun <obr@openoffice.org>2001-06-27 05:30:38 +0000
committerOliver Braun <obr@openoffice.org>2001-06-27 05:30:38 +0000
commit9f2f8a302e2ab1d7be07044951583a55c745b8e6 (patch)
tree95cc29d4f91d33c5cd762e796eea5718fab82376 /shell
parent929d0b0d21891665a7087bd398cc690d03b26771 (diff)
#88295# convert program path to file url
Diffstat (limited to 'shell')
-rwxr-xr-xshell/source/cmdmail/cmdmailsuppl.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index a07463b84217..ac661f6b631a 100755
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cmdmailsuppl.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obr $ $Date: 2001-06-26 16:13:28 $
+ * last change: $Author: obr $ $Date: 2001-06-27 06:30:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,6 +71,10 @@
#include <osl/process.h>
#endif
+#ifndef _OSL_FILE_HXX_
+#include <osl/file.hxx>
+#endif
+
#ifndef _CMDMAILSUPPL_HXX_
#include "cmdmailsuppl.hxx"
#endif
@@ -104,6 +108,7 @@ using com::sun::star::container::NoSuchElementException;
using rtl::OUString;
using rtl::OUStringToOString;
using osl::MutexGuard;
+using osl::FileBase;
using namespace cppu;
using namespace com::sun::star::system::SimpleMailClientFlags;
@@ -228,6 +233,9 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
if( aProgram.getLength() )
{
+ // convert to file url
+ FileBase::getFileURLFromSystemPath( aProgram, aProgram );
+
OUString aProgramConfig = OUString::createFromAscii( "base" );
aConfigRoot += OUString::createFromAscii( "/Profiles/" );