u/OkAlbatross9889

Wayland to X toggle
▲ 7 r/Gentoo

Wayland to X toggle

SOLVED: i had “environment { DISPLAY “:0” }” set in my niri config. Thanks everybody for the help!

Hello everyone!

Background: i’m trying to run ckan (a mod manager for kerbal space program) which unfortunately doesn’t have a build in neither the standard repo or the guru, so i had to download the ckan.exe from github and run it through mono. It requires X to be the display server to run but i’m on wayland (i have both use flags in my make.conf specifically to ensure compatibility and fixability in case something like this happened).

Problem: is there a way to conveniently switch from x to wayland and viceversa?

My first thought went to the plasma login manager, but it requires systemd and i’m on openrc.

Does anyone now of some other easy way of toggling between the two? Maybe a plugin for sddm?

Edit: github for ckan and full error

Edit 2: Both Xwayland and xwayland-satellite are running

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0047e] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x0006d] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <f0f408c106b34e568005141177d4dfe1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <f0f408c106b34e568005141177d4dfe1>:0
at CKAN.GUI.GUI.Main_ (System.String[] args, System.String userAgent, CKAN.GameInstanceManager manager, System.Boolean showConsole) [0x00028] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Gui (CKAN.GameInstanceManager manager, CKAN.CmdLine.GuiOptions options, System.String[] args) [0x0003e] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.RunSimpleAction (CKAN.CmdLine.Options cmdline, CKAN.CmdLine.CommonOptions options, System.String[] args, CKAN.IUser user, CKAN.GameInstanceManager manager) [0x00108] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Execute (CKAN.GameInstanceManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args, CKAN.IUser user) [0x002e1] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x0010b] in <e14f446e063b48ea94c0b0ec41a22fd4>:0

u/OkAlbatross9889 — 1 day ago