[Bug 275445] x11/xwayland-run: wlheadless-run and xwfb-run fail to start without explicit -c cage

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275445

            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: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

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", line
108, in run_compositor
    proc = 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_child
    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 = cage

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.