Wolfram wrote: Fri Aug 23, 2024 5:59 pm
Code: Select all
GetPathPart(#DQUOTE$ + filePath$ +#DQUOTE$)
This is not correct, the #DQUOTE$ constant is superfluous here. The path must not contain quotes; they are not allowed in names.
Although it did not give an error and returned the correct result.
The RunProgram function is different, there is a parameter enumeration string, not a path, so there quotes are interpreted correctly as highlighting an object so that it is not separated by a space.
SetCurrentDirectory() sets the current path, so you don't have to use the full path to the file. If you use the full path to the file, then SetCurrentDirectory() does not give you any benefits.
Linux is case sensitive in folder and file names, so it is important not to make mistakes in these little things.
For Linux you need to use "xdg-open". I suggested adding an example to the documentation. You also need to install this "xdg-utils" package
Code: Select all
RunProgram("xdg-open", #DQUOTE$ + filePath$ +#DQUOTE$, GetPathPart(tmp$))