To start an application from your window manager, you need to issue a write() call to send a start command to the PPS launcher control object.
After opening the /pps/services/launcher/control object for publishing, call write() to modify the object's attributes. Use the appropriate message format with the start command.
#define CMD_START "start"
...
int msgsize;
char msgbuf[4096];
int ret = 0;
char *id = strdup("101");
char *data = strdup("HelloWebWorks.testDev_lloWebWorks1fa80f60");
...
msgsize = snprintf(msgbuf,
sizeof(msgbuf),
"msg::%s\ndat::%s\nid::%s", CMD_START, data, id);
ret = write(pps_fd, msgbuf, (unsigned)msgsize);
The figure below shows the basic steps for launching an application:
Figure 1. Step-by-step view of how window manager launches an applicationFor information about Application Launcher and the PPS control object it uses, see launcher in the System Services Reference and /pps/services/launcher/control in the PPS Objects Reference.