Function openpath
#include <macaw.h>int openpath(const char *path, const char **args, int n);
Opens a file or program as double-clicking it would: a program runs, and a document opens in its program.
Parameters
pathconst char *- What to open. A path without
/at the start is from your program's folder. argsconst char **- An array of text to give a program you open, which it gets as
ARGS, orNULLfor none. nint- How many there are in
args, or 0 for none.
Returns int
1 if it opened, or 0 if it couldn't.
In The desktop, with getpref, setpref.