deckmaster
deckmaster copied to clipboard
XGB: conn.go:47: Could not get authority info: EOF
The XGB include breaks if you aren't running XWindows (i.e. running Wayland). There is a uinput go library that works for both Wayland and X11. I think the desktop code also uses the XGB for 'last window' widget, etc, so it may not be a direct swap, but it would be nice if we didn't throw errors if you aren't running XWindows. Maybe at least a toggle to not run that code-path as a config?
The X connection should already be entirely optional. What errors are you seeing? uinput
has neither X nor Wayland dependencies, but Wayland may only support reading events via libinput
.
I'll have to put the code back in to get the error messages - my bad. Will do so later tonight.
Here is the stderr output
❯ deckmaster --deck ~/.config/deckmaster/decks/main.deck
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
Could not create virtual input device (/dev/uinput): failed to create virtual keyboard device: could not open device file
Emulating keyboard events will be disabled!
Hi, Try to add this line to your udev rules : KERNEL=="uinput", MODE="0666"
I'ts work for me, I doesn't have the error message anymore
Here is the stderr output
❯ deckmaster --deck ~/.config/deckmaster/decks/main.deck XGB: conn.go:47: Could not get authority info: EOF XGB: conn.go:48: Trying connection without authority info... XGB: conn.go:47: Could not get authority info: EOF XGB: conn.go:48: Trying connection without authority info... Could not create virtual input device (/dev/uinput): failed to create virtual keyboard device: could not open device file Emulating keyboard events will be disabled!