You are not logged in.
I installed mupdf-gl with sudo pacman -S mupdf-gl.
When I try to open a file with mupdf a.pdf, for example, I get the error
freeglut (mupdf): failed to open display ''
I'm running under wayland with sway window manager.
How could i solve this problem?
Last edited by little-arch-user (2024-07-28 16:48:29)
Offline
Is xwayland installed / enabled? Mupdf will not run under wayland but only X11.
There was a patch to freeglut that intended to make it run under wayland (and thus mupdf-gl could as well) but it was specific to only the core wayland protocol (e.g., weston) and will not run on any modern compositors. I'm not sure if it'd even work on weston anymore, but certainly not sway or other compositors.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Is xwayland installed / enabled? Mupdf will not run under wayland but only X11.
There was a patch to freeglut that intended to make it run under wayland (and thus mupdf-gl could as well) but it was specific to only the core wayland protocol (e.g., weston) and will not run on any modern compositors. I'm not sure if it'd even work on weston anymore, but certainly not sway or other compositors.
ok. I've just installed xorg-xwayland with pacman. How do i enable it?
Offline
https://wiki.archlinux.org/title/Sway#Xwayland
Apparently it just needs to be installed as long as you haven't specifically disabled it. Though I suspect you'll need to restart sway.
Last edited by Trilby (2024-07-28 16:34:24)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
https://wiki.archlinux.org/title/Sway#Xwayland
Apparently it just needs to be installed as long as you haven't specifically disabled it. Though I suspect you'll need to restart sway.
I added xwayland enabled to my sway config file, reboot the system and mupdf now works Thanks you!
Offline