mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
xwayland: actually use Xwayland from pkg-config
eec2e1d3b1
introduced logic to use the Xwayland
binary discovered via pkg-config.
While the newly introduced checks correctly used the binary from pkg-config,
the actual execution still used the previous PATH-search logic.
This commit is contained in:
parent
101b9a193d
commit
9f211b5dd4
1 changed files with 2 additions and 2 deletions
|
@ -119,13 +119,13 @@ noreturn static void exec_xwayland(struct wlr_xwayland_server *server) {
|
|||
wlr_log(WLR_INFO, "Using Xwayland binary '%s' due to WLR_XWAYLAND",
|
||||
xwayland_path);
|
||||
} else {
|
||||
xwayland_path = "Xwayland";
|
||||
xwayland_path = XWAYLAND_PATH;
|
||||
}
|
||||
|
||||
// This returns if and only if the call fails
|
||||
execvp(xwayland_path, argv);
|
||||
|
||||
wlr_log_errno(WLR_ERROR, "failed to exec Xwayland");
|
||||
wlr_log_errno(WLR_ERROR, "failed to exec %s", xwayland_path);
|
||||
close(devnull);
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue