lmstudio does not open using the Wayland backend by default on NixOS, even with the environment.sessionVariables.NIXOS_OZONE_WL = "1"; flag enabled. While other Electron-based applications like Obsidian and VS Code correctly open on Wayland, lmstudio defaults to X11 and requires manual flags (--enable-features=WaylandWindowDecorations --ozone-platform-hint=auto) to open using Wayland.
Steps To Reproduce
Steps to reproduce the behavior:
Enable Wayland for Electron apps on NixOS with environment.sessionVariables.NIXOS_OZONE_WL = "1";.
Install and launch lmstudio.
Observe that lmstudio opens with the X11 backend by default.
Relaunch lmstudio with --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto to confirm it opens with Wayland.
Expected behavior
lmstudio should detect the NIXOS_OZONE_WL flag and open using the Wayland backend by default, without requiring additional command-line flags.
Additional context
This issue seems specific to lmstudio in contrast to other Electron apps like obsidian or vscode on NixOS that respect the Wayland backend configuration.
The package simply doesn't have the NixOS-specific wrapping applied that makes the env var work in other packages. This is expected behaviour but support for NIXOS_OZONE_WL could be added.
Describe the bug
lmstudio
does not open using the Wayland backend by default on NixOS, even with theenvironment.sessionVariables.NIXOS_OZONE_WL = "1";
flag enabled. While other Electron-based applications like Obsidian and VS Code correctly open on Wayland,lmstudio
defaults to X11 and requires manual flags (--enable-features=WaylandWindowDecorations --ozone-platform-hint=auto
) to open using Wayland.Steps To Reproduce
Steps to reproduce the behavior:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
.lmstudio
.lmstudio
opens with the X11 backend by default.lmstudio
with--enable-features=WaylandWindowDecorations --ozone-platform-hint=auto
to confirm it opens with Wayland.Expected behavior
lmstudio
should detect theNIXOS_OZONE_WL
flag and open using the Wayland backend by default, without requiring additional command-line flags.Additional context
This issue seems specific to
lmstudio
in contrast to other Electron apps like obsidian or vscode on NixOS that respect the Wayland backend configuration.