You are not logged in.

#1 2024-07-28 16:02:59

little-arch-user
Member
Registered: 2024-07-26
Posts: 3

[SOLVED] sway, wayland; freeglut (mupdf): failed to open display ''

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

#2 2024-07-28 16:06:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] sway, wayland; freeglut (mupdf): failed to open display ''

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

#3 2024-07-28 16:31:16

little-arch-user
Member
Registered: 2024-07-26
Posts: 3

Re: [SOLVED] sway, wayland; freeglut (mupdf): failed to open display ''

Trilby wrote:

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

#4 2024-07-28 16:33:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] sway, wayland; freeglut (mupdf): failed to open display ''

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

#5 2024-07-28 16:43:51

little-arch-user
Member
Registered: 2024-07-26
Posts: 3

Re: [SOLVED] sway, wayland; freeglut (mupdf): failed to open display ''

Trilby wrote:

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 smile Thanks you!

Offline

Board footer

Powered by FluxBB