The second argument is a NULL-terminated array.

Signed-off-by: Jussi Kukkonen <[email protected]>
---
 src/matchbox-remote.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/matchbox-remote.c b/src/matchbox-remote.c
index 9f62523..e6cc076 100644
--- a/src/matchbox-remote.c
+++ b/src/matchbox-remote.c
@@ -143,11 +143,13 @@ mbcommand(int cmd_id, char *data) {
        /* Check if desktop is running */
        if (!XGetSelectionOwner(dpy, desktop_manager_atom))
         {
+          char *exec_args[] = { NULL };
+
           fprintf(stderr, "Desktop not running, exiting...\n");
           switch (fork())
             {
             case 0:
-              execvp ("mbdesktop", NULL);
+              execvp ("mbdesktop", exec_args);
               break;
             case -1:
               fprintf(stderr, "failed to exec mbdesktop");
-- 
2.11.0

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to