You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching a UI with the sudo command (ex. "sudo dotnet myapp.dll" or "sudo -s" "dotnet myapp.dll") the build seemingly fails.
This can be reproduced with any basic application, in my particular case it requires superuser access. Running as a user runs as expected (aside from permission issues from my client dll which isn't related to any UI issues).
Desktop (please complete the following information):
Ubuntu 62 bit
Ubuntu 22.04.1 LTS
Unhandled exception. System.Exception: XOpenDisplay failed
at Avalonia.X11.AvaloniaX11Platform.Initialize(X11PlatformOptions options) in /_/src/Avalonia.X11/X11Platform.cs:line 57
at Avalonia.AvaloniaX11PlatformExtensions.<>c__0`1.<UseX11>b__0_0() in /_/src/Avalonia.X11/X11Platform.cs:line 280
at Avalonia.Controls.AppBuilderBase`1.Setup() in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 303
at Avalonia.Controls.AppBuilderBase`1.SetupWithLifetime(IApplicationLifetime lifetime) in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 179
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 208
at myapp.Program.Main(String[] args) in C:\git\myapp\Program.cs:line 14
The text was updated successfully, but these errors were encountered:
When launching a UI with the sudo command (ex. "sudo dotnet myapp.dll" or "sudo -s" "dotnet myapp.dll") the build seemingly fails.
This can be reproduced with any basic application, in my particular case it requires superuser access. Running as a user runs as expected (aside from permission issues from my client dll which isn't related to any UI issues).
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: