diff --git a/CHANGELOG.md b/CHANGELOG.md index c178299..84fd957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ GitHub are taken from the matching section here. ## [Unreleased] +### Changed + +- The Flatpak build asks for the X11 socket only when there is no Wayland + session, as before 0.3.3. + ## [0.3.3] - 2026-10-04 ### Added @@ -44,9 +49,6 @@ GitHub are taken from the matching section here. systems whose GL setup GTK could not use. - Fixed a crash when Roblox's saved dark or light theme setting was missing or damaged. -- The Flatpak build now detects an NVIDIA driver from inside its sandbox, so it - uses X11 instead of native Wayland where both are available. This avoids - Wayland hangs and display disconnects. ## [0.3.2] - 2026-09-29 diff --git a/packaging/flatpak/io.github.CoderDayton.nightcap.json b/packaging/flatpak/io.github.CoderDayton.nightcap.json index a4eae08..d553d1f 100644 --- a/packaging/flatpak/io.github.CoderDayton.nightcap.json +++ b/packaging/flatpak/io.github.CoderDayton.nightcap.json @@ -9,7 +9,7 @@ "--share=ipc", "--share=network", "--socket=wayland", - "--socket=x11", + "--socket=fallback-x11", "--socket=pulseaudio", "--device=dri", "--talk-name=com.feralinteractive.GameMode", diff --git a/packaging/io.github.CoderDayton.nightcap.metainfo.xml b/packaging/io.github.CoderDayton.nightcap.metainfo.xml index 6f80955..21e9c8f 100644 --- a/packaging/io.github.CoderDayton.nightcap.metainfo.xml +++ b/packaging/io.github.CoderDayton.nightcap.metainfo.xml @@ -67,7 +67,6 @@
  • Going to another page in the web view no longer closes it.
  • Clicking while typing no longer closes the text box.
  • Fixed the sky showing the wrong textures.
  • -
  • The Flatpak build on NVIDIA now uses X11 to avoid Wayland hangs.
  • diff --git a/tests/flatpak_packaging_test.sh b/tests/flatpak_packaging_test.sh index 6908d59..09628d7 100755 --- a/tests/flatpak_packaging_test.sh +++ b/tests/flatpak_packaging_test.sh @@ -37,14 +37,14 @@ finish_args = set(manifest["finish-args"]) required_permissions = { "--share=network", "--socket=wayland", - "--socket=x11", + "--socket=fallback-x11", "--socket=pulseaudio", "--device=dri", "--filesystem=xdg-run/discord-ipc-0:rw", } assert required_permissions <= finish_args -# Keep NVIDIA's XWayland fallback available even when Wayland is present. -assert "--socket=fallback-x11" not in finish_args +# X11 is only a fallback; Wayland sessions get no X11 socket. +assert "--socket=x11" not in finish_args assert not any(argument.startswith("--filesystem=host") for argument in finish_args) assert not any(argument == "--filesystem=home" for argument in finish_args)