Function putondesktop
#include <macawui.h>int putondesktop(const char *path, char *buf, int size);
Puts an alias of a file, folder, program or game on the desktop.
Parameters
pathconst char *- What to make an alias of, from your program's folder unless it starts with
/. bufchar *- A buffer for the alias's own path, in
/home/Desktop, or for why it didn't work. sizeint- How many bytes
bufholds.
Returns int
The length of the alias's path, or -1 if it didn't work.
In Drag and drop, with ondrop, canpickfiles, pickfiles, startdrag.