switch to xwayland display :1

no conflict with Xorg
This commit is contained in:
Jörg Thalheim
2024-01-02 16:44:51 +01:00
parent d0f1cf6720
commit 25fd707c3f

View File

@@ -13,7 +13,7 @@
environment.sessionVariables = { environment.sessionVariables = {
WAYLAND_DISPLAY = "wayland-1"; WAYLAND_DISPLAY = "wayland-1";
DISPLAY = ":0"; DISPLAY = ":1";
QT_QPA_PLATFORM = "wayland"; # Qt Applications QT_QPA_PLATFORM = "wayland"; # Qt Applications
GDK_BACKEND = "wayland"; # GTK Applications GDK_BACKEND = "wayland"; # GTK Applications
XDG_SESSION_TYPE = "wayland"; # Electron Applications XDG_SESSION_TYPE = "wayland"; # Electron Applications
@@ -34,7 +34,7 @@
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "${config.services.wayland-proxy-virtwl.package}/bin/wayland-proxy-virtwl --virtio-gpu --x-display=0 --xwayland-binary=${pkgs.xwayland}/bin/Xwayland"; ExecStart = "${config.services.wayland-proxy-virtwl.package}/bin/wayland-proxy-virtwl --virtio-gpu --x-display=1 --xwayland-binary=${pkgs.xwayland}/bin/Xwayland";
Restart = "always"; Restart = "always";
RestartSec = 5; RestartSec = 5;
}; };