linuxmint / nemo-extensions

A set of extensions for Nemo
410 stars 150 forks source link

nemo-preview is bugged in wayland #482

Closed ruZeph closed 7 months ago

ruZeph commented 1 year ago
Nemo version- nemo 5.6.4
Issue with window manager
OS: Fedora 38 Workstation
Graphics - Intel UHD IGPU
64 bit

Issue nemo-preview does not work on Wayland session. It throws the following error:

(nemo:21512): Gdk-CRITICAL **: 13:22:17.241: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

Steps to reproduce

  1. Install nemo and nemo-preview on any Wayland session.
  2. Run nemo and try to preview anything by hitting spacebar.

Expected behaviour The selected file preview is shown.

Other information The file preview works okay on X11.

molove commented 9 months ago

I came across this https://reddit.com/r/pop_os/comments/iw2y1p/install_and_enable_nemopreview_in_pop_os/ which recommended editing /usr/bin/nemo-preview and adding export GDK_BACKEND=x11 before any of the export lines if using Wayland. nemo-preview is now working for me on Wayland Gnome on Arch.