Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2023 06:14:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 275445] x11/xwayland-run: wlheadless-run and xwfb-run fail to start without explicit -c cage
Message-ID:  <bug-275445-7141-WU8cTmsVMO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275445-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275445-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 275445: x11/xwayland-run: wlheadless-run and xwfb-run fail to start wit=
hout
explicit -c cage
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275445



--- Description ---
Running without extra flags fails because the installed config file isn't
actually used.

$ pkg install xwayland-run glx-utils
$ wlheadless-run -- glxgears
Traceback (most recent call last):
  File "/usr/local/bin/wlheadless-run", line 78, in <module>
    if wlheadless.run_compositor(compositor_args) < 0:
  File "/usr/local/lib/python3.9/site-packages/wlheadless/weston.py", line =
72,
in run_compositor
    return self.wlheadless_common.run_compositor(compositor)
  File
"/usr/local/lib/python3.9/site-packages/wlheadless/wlheadless_common.py", l=
ine
108, in run_compositor
    proc =3D subprocess.Popen(compositor)
  File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.9/subprocess.py", line 1837, in _execute_chi=
ld
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'weston'

$ truss wlheadless-run -- glxgears 2>&1 | fgrep wlheadless.conf
openat(AT_FDCWD,"wlheadless/wlheadless.conf",O_RDONLY|O_CLOEXEC,00) ERR#2 '=
No
such file or directory'
openat(AT_FDCWD,"wlheadless/wlheadless.conf",O_RDONLY|O_CLOEXEC,00) ERR#2 '=
No
such file or directory'

$ cat /usr/local/share/wlheadless/wlheadless.conf
[DEFAULT]
    Compositor =3D cage



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275445-7141-WU8cTmsVMO>