desktop-shell: launch from the compositor

Fork and exec desktop-shell in the compositor. This is a way to create
an authenticated client. Later, the desktop-shell interface will be
reserved for this client only.

For exec to work, the compositor should be started from the
wayland-demos' root directory.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen
2011-11-03 14:11:32 +02:00
committed by Kristian Høgsberg
parent ef7c8d9ddf
commit 6cd281a023
2 changed files with 69 additions and 0 deletions
+3
View File
@@ -323,6 +323,9 @@ int main(int argc, char *argv[])
return -1;
}
/* The fd is our private, do not confuse our children with it. */
unsetenv("WAYLAND_SOCKET");
wl_display_add_global_listener(display_get_display(desktop.display),
global_handler, &desktop);