A handful of us on 24.04/25.04 have noticed that the Files (Nautilus) context-menu sometimes ignores the click and just vanishes on X-sessions. Two things are going on:
It’s an X11-only quirk. Nautilus and most of GNOME moved to GTK 4, and the devs spend far more time testing on Wayland. On X11 the pointer-grab logic in GTK occasionally drops the click, so the menu closes before the item gets the event. People on Reddit and Launchpad have filed similar complaints .
Wayland is already fixed. Log in to the default Ubuntu on Wayland session and the problem disappears.
Quick work-arounds while you stay on X11
Work-around
What to do
Notes
Use Wayland for just Nautilus
GDK_BACKEND=wayland nautilus &
Lets Files run with Wayland back-end even inside an X session. Good stop-gap, but drag-and-drop to non-Wayland apps won’t work.
Try another file manager
sudo apt install nemo (or Thunar, PCManFM…)
Handy if you need stable right-clicks until Nautilus is patched.
Add yourself to the bug
Launchpad bug #2067626
More “This affects me” clicks = higher priority.
Bottom line
Until a patched Nautilus/GTK hits the repos, the cleanest fix is simply to use the Wayland session (or run Nautilus with the Wayland backend). Everything else is just a temporary band-aid, but it’ll keep your workflow sane in the meantime. Hope that helps!
Close every Nautilus window first.
Open a terminal and run
GDK_BACKEND=wayland nautilus &
That starts a fresh Nautilus process using Wayland even though the rest of your session is X11.
If the command just blinks and nothing opens, it usually means GTK can’t get a Wayland connection (some Nvidia drivers or older GTK stacks block it). In that case you’re down to:
Install an alternative file manager (sudo apt install nemo or thunar) and set it as default, or
Log in to the full Wayland session from the greeter for everything.
Those are the only reliable fixes until the upstream patch lands. Hope that clears it up!