fix(nb): force signal-desktop to use X11 with --ozone-platform=x11

Electron 38 has built-in Wayland auto-detection. Even without
ELECTRON_OZONE_PLATFORM_HINT, it detects WAYLAND_DISPLAY and tries
to use Wayland, triggering the empty window bug in Signal Desktop.

Explicitly force X11/XWayland mode with --ozone-platform=x11 flag
to prevent auto-detection and fix the empty window issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-19 15:56:24 +02:00
parent bbb9cacd71
commit 5648224062

View File

@@ -6,14 +6,14 @@ let
name = "signal-desktop"; name = "signal-desktop";
desktopName = "Signal"; desktopName = "Signal";
icon = "signal-desktop"; icon = "signal-desktop";
exec = "signal-desktop --enable-features=VaapiVideoDecoder -- %u"; exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder -- %u";
}; };
signalWorkDesktopItem = pkgs.makeDesktopItem { signalWorkDesktopItem = pkgs.makeDesktopItem {
name = "signal-work"; name = "signal-work";
desktopName = "Signal with work profile"; desktopName = "Signal with work profile";
icon = "signal-desktop"; icon = "signal-desktop";
exec = "signal-desktop --enable-features=VaapiVideoDecoder --enable-dev-tools --user-data-dir=/home/dominik/.config/Signal-work -- %u"; exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder --enable-dev-tools --user-data-dir=/home/dominik/.config/Signal-work -- %u";
}; };
in { in {
environment.systemPackages = [ environment.systemPackages = [