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

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275445

            Bug ID: 275445
           Summary: x11/xwayland-run: wlheadless-run and xwfb-run fail to
                    start without explicit -c cage
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)
          Assignee: x11@FreeBSD.org

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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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