xserver: use $bindir prefix when launching X

This commit is contained in:
Kristian Høgsberg 2011-07-21 06:46:05 -07:00
parent 535e2c65c7
commit b3b425c8d1
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ bin_PROGRAMS = wayland-compositor
AM_CPPFLAGS = \
-DDATADIR='"$(datadir)"' \
-DMODULEDIR='"$(moduledir)"' \
-DBINDIR='"$(bindir)"' \
$(COMPOSITOR_CFLAGS)
wayland_compositor_LDFLAGS = -export-dynamic

View File

@ -483,8 +483,8 @@ wlsc_xserver_handle_event(int listen_fd, uint32_t mask, void *data)
snprintf(logfile, sizeof logfile,
"/tmp/x-log-%d", mxs->display);
if (execl("/usr/bin/Xorg",
"/usr/bin/Xorg",
if (execl(BINDIR "/Xorg",
BINDIR "/Xorg",
display,
"-wayland",
"-rootless",