Kaydet (Commit) 5c074d83 authored tarafından Jan Holesovsky's avatar Jan Holesovsky
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "stdobj.hxx" #include "stdobj.hxx"
#include "rtlproto.hxx" #include "rtlproto.hxx"
#include "errobject.hxx" #include "errobject.hxx"
#include "basegfx/numeric/ftools.hxx"
// Properties und Methoden legen beim Get (bWrite = sal_False) den Returnwert // Properties und Methoden legen beim Get (bWrite = sal_False) den Returnwert
......
...@@ -38,8 +38,10 @@ ...@@ -38,8 +38,10 @@
#include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.h>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <osl/file.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <rtl/bootstrap.hxx>
#include <tools/resmgr.hxx> #include <tools/resmgr.hxx>
#include <svtools/svtools.hrc> #include <svtools/svtools.hrc>
...@@ -715,7 +717,11 @@ void UnxFilePicker::initFilePicker() ...@@ -715,7 +717,11 @@ void UnxFilePicker::initFilePicker()
#endif #endif
// The executable name // The executable name
const char *pFname = "kdefilepicker"; rtl::OUString helperurl( RTL_CONSTASCII_USTRINGPARAM("${ORIGIN}/kdefilepicker"));
rtl::Bootstrap::expandMacros( helperurl );
rtl::OUString helperpath;
osl::FileBase::getSystemPathFromFileURL( helperurl, helperpath );
rtl::OString helper( rtl::OUStringToOString( helperpath, osl_getThreadTextEncoding()));
// ID of the main window // ID of the main window
const int nIdLen = 20; const int nIdLen = 20;
...@@ -736,7 +742,7 @@ void UnxFilePicker::initFilePicker() ...@@ -736,7 +742,7 @@ void UnxFilePicker::initFilePicker()
} }
// Execute the fpicker implementation // Execute the fpicker implementation
execlp( pFname, pFname, "--winid", pWinId, NULL ); execlp( helper.getStr(), helper.getStr(), "--winid", pWinId, NULL );
// Error, finish the child // Error, finish the child
exit( -1 ); exit( -1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment