https://issues.apache.org/ooo/show_bug.cgi?id=125117

          Issue ID: 125117
        Issue Type: DEFECT
           Summary: SystemShellExecute call from BASIC doesn't pass
                    arguments on Mac OSX but does on Windows
           Product: App Dev
           Version: 4.1.0
          Hardware: All
                OS: Mac OSX, all
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]

I'm trying to call an external program from a BASIC macro using the
SystemShellExecute UNO call.


oSvc = createUnoService("com.sun.star.system.SystemShellExecute")
pathToExternal = "/appropriate/path/to/external/app"
args = "some arguments here"
oSvc.execute(convertToUrl(pathToExternal), args ,1)


On Windows this works perfectly (Assuming the pathToExternal variable was set
to an actual windows pathname)

On MacOS, the external program is called, but it doesn't get the command line
arguments.

I tested this by writing a simple python script which outputs the given command
line arguments to a file, and calling the script from BASIC using the above
code.  When I run it on Windows, the file contains whatever arguments were sent
from the args variable.  When I run it on Mac, it only contains the path to the
python script, with no arguments.

I assume this is a bug since it behaves differently on different
implementations, and on Mac it doesn't work the way the documentation says it
should.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to