xserver: use $bindir prefix when launching X
This commit is contained in:
@@ -3,6 +3,7 @@ bin_PROGRAMS = wayland-compositor
|
|||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DDATADIR='"$(datadir)"' \
|
-DDATADIR='"$(datadir)"' \
|
||||||
-DMODULEDIR='"$(moduledir)"' \
|
-DMODULEDIR='"$(moduledir)"' \
|
||||||
|
-DBINDIR='"$(bindir)"' \
|
||||||
$(COMPOSITOR_CFLAGS)
|
$(COMPOSITOR_CFLAGS)
|
||||||
|
|
||||||
wayland_compositor_LDFLAGS = -export-dynamic
|
wayland_compositor_LDFLAGS = -export-dynamic
|
||||||
|
|||||||
@@ -483,8 +483,8 @@ wlsc_xserver_handle_event(int listen_fd, uint32_t mask, void *data)
|
|||||||
snprintf(logfile, sizeof logfile,
|
snprintf(logfile, sizeof logfile,
|
||||||
"/tmp/x-log-%d", mxs->display);
|
"/tmp/x-log-%d", mxs->display);
|
||||||
|
|
||||||
if (execl("/usr/bin/Xorg",
|
if (execl(BINDIR "/Xorg",
|
||||||
"/usr/bin/Xorg",
|
BINDIR "/Xorg",
|
||||||
display,
|
display,
|
||||||
"-wayland",
|
"-wayland",
|
||||||
"-rootless",
|
"-rootless",
|
||||||
|
|||||||
Reference in New Issue
Block a user