fastfetch: "Authorization required, but no authorization protocol specified" error printed multiple times if running from chroot
General description of bug:
If running fastfetch from chroot, I’m getting the following error printed multiple times: Authorization required, but no authorization protocol specified.
- What happened:
- What should happen: The error isn’t printed.
- Did it work in an older version: 1.12.2 is the first one I’m using.
- Where did you get the binary: Gentoo official overlay - app-misc/fastfetch
- Does this issue still occurs in the latest dev build? yes
Often helpful information:
Output of fastfetch --version:
fastfetch 1.12.2 (x86_64)
The content of the configuration file you use (if any)
--structure Title:Separator:OS:Kernel:Uptime:Packages:Shell:Display:DE:WM:Terminal:CPU:GPU:Memory:Battery:PowerAdapter:Break:Colors
--color blue
--logo-color-1 blue
--logo-color-2 blue
--separator-string "━"
--percent-type 3
Output of fastfetch --list-features:
threads
vulkan
xcb-randr
xcb
x11
dbus
egl
glx
libpulse
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (12 by maintainers)
Commits related to this issue
- DisplayServer (Linux): try fixing #505 — committed to fastfetch-cli/fastfetch by CarterLi a year ago
- Revert "DisplayServer (Linux): try fixing #505" This reverts commit aa498776108eb0df31535f6be3261e63f8c7b7e5. — committed to fastfetch-cli/fastfetch by CarterLi a year ago
- packages: fix performance issue for rpm packages detection As discussed in [the fastfetch issue](https://github.com/fastfetch-cli/fastfetch/issues/505#issuecomment-1857192144) — committed to CarterLi/albafetch by CarterLi 7 months ago
@alba4k I just found this. Great project! I compared the performance of
albafetchwithfastfetchin Fedora Linux, and found thatalbafetchcosts about 400 ms whilefastfetchcosts about34msdebugshows that the bottleneck comes frompackages.albafetchuses rawrpmcommand which is very slow. I suggest that you should query the sqlite database used by rpm directly. The following patch does the trick:albafetchcosts about 27ms with the patch applied, which is even faster thanfastfetch, really impressive!@alba4k I think I was searching for Neofetch alternatives on the AUR 🥸
albafetch is nice too, keep it up!
You could just use
--ds-force-drmin chroot, and this flag will skip the X11 connection.I’m closing this
CC @LinusDierheimer
Oh, I think that’s because DisplayServer is run in a separated thread, and swallowed the output from normal module.
Please try
fastfetch --thread falseHow many *fetch programs did you install 😆
I assume that they didn’t get the same error because they didn’t try to connect x11 server. Do they support refresh rate detection?
I can add a flag to force display detection to use
/sys/class/drm/