mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-18 02:00:48 +02:00
fix(flatpak): ask for the X11 socket only as a fallback
This commit is contained in:
1 parent
169e65bf60
commit
d937dd7ea6
4 files changed
+9
-8
No files matched your search
+5
-3
@@ -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
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"--share=ipc",
|
||||
"--share=network",
|
||||
"--socket=wayland",
|
||||
"--socket=x11",
|
||||
"--socket=fallback-x11",
|
||||
"--socket=pulseaudio",
|
||||
"--device=dri",
|
||||
"--talk-name=com.feralinteractive.GameMode",
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
<li>Going to another page in the web view no longer closes it.</li>
|
||||
<li>Clicking while typing no longer closes the text box.</li>
|
||||
<li>Fixed the sky showing the wrong textures.</li>
|
||||
<li>The Flatpak build on NVIDIA now uses X11 to avoid Wayland hangs.</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user