-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I would like to run the application on a headless Linux server using mono but I get this error:
$ mono SubtitleEdit.exe /?
[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) [0x00435] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.XplatUI..cctor () [0x0007d] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at Nikse.SubtitleEdit.Program.Main () [0x0002d] in <a350741a374d4e31a818096ace4f9fe2>:0
This seems to work on Windows without any problem. Is there anyway to start the application without needing xserver/ a display?
badgolim, Norbell, franontanaya, WaLLy3K and batatopbadgolimbatatop
Metadata
Metadata
Assignees
Labels
No labels