@ -36,6 +36,12 @@
# include <libweston/xwayland-api.h>
# include <libweston/xwayland-api.h>
# include "shared/helpers.h"
# include "shared/helpers.h"
# ifdef HAVE_XWAYLAND_LISTENFD
# define LISTEN_STR "-listenfd"
# else
# define LISTEN_STR "-listen"
# endif
struct wet_xwayland {
struct wet_xwayland {
struct weston_compositor * compositor ;
struct weston_compositor * compositor ;
const struct weston_xwayland_api * api ;
const struct weston_xwayland_api * api ;
@ -123,22 +129,13 @@ spawn_xserver(void *user_data, const char *display, int abstract_fd, int unix_fd
xserver ,
xserver ,
display ,
display ,
" -rootless " ,
" -rootless " ,
# ifdef HAVE_XWAYLAND_LISTENFD
LISTEN_STR , abstract_fd_str ,
" -listenfd " , abstract_fd_str ,
LISTEN_STR , unix_fd_str ,
" -listenfd " , unix_fd_str ,
# else
" -listen " , abstract_fd_str ,
" -listen " , unix_fd_str ,
# endif
" -wm " , wm_fd_str ,
" -wm " , wm_fd_str ,
" -terminate " ,
" -terminate " ,
NULL ) < 0 )
NULL ) < 0 )
weston_log ( " exec of '%s %s -rootless "
weston_log ( " exec of '%s %s -rootless "
# ifdef HAVE_XWAYLAND_LISTENFD
LISTEN_STR " %s " LISTEN_STR " %s "
" -listenfd %s -listenfd %s "
# else
" -listen %s -listen %s "
# endif
" -wm %s -terminate' failed: %s \n " ,
" -wm %s -terminate' failed: %s \n " ,
xserver , display ,
xserver , display ,
abstract_fd_str , unix_fd_str , wm_fd_str ,
abstract_fd_str , unix_fd_str , wm_fd_str ,