[Bug 295486] x11-wm/awesome: awful.spawn.with_line_callback causes error

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 May 2026 01:08:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295486

            Bug ID: 295486
           Summary: x11-wm/awesome: awful.spawn.with_line_callback causes
                    error
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: cbtidus@gmail.com

Created attachment 271000
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271000&action=edit
A diff for /usr/local/share/awesome/lib/awful/spawn.lua

Using awful.spawn.with_line_callback causes my config to not fully load and
gives the following error in a popup

/usr/local/share/awesome/lib/awful/spawn.lua:414: attempt to index a nil value
(field 'UnixInputStream')

Going into spawn.lua and changing two instances of "Gio.UnixInputStream.new" to
"lgi.GioUnix.InputStream.new" then restarting awesome makes the error go away
and everything that worked before in awesome seems to work again. I have no
idea if this is the best way of fixing this issue but this seems to do it for
me. I've attached a diff with this change made

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