File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ public CommandContext()
134
134
else if ( PlatformUtils . IsLinux ( ) )
135
135
{
136
136
FileSystem = new LinuxFileSystem ( ) ;
137
- // TODO: support more than just 'Posix' or X11
138
137
SessionManager = new PosixSessionManager ( ) ;
139
138
Environment = new PosixEnvironment ( FileSystem ) ;
140
139
ProcessManager = new ProcessManager ( Trace2 ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ public PosixSessionManager()
9
9
PlatformUtils . EnsurePosix ( ) ;
10
10
}
11
11
12
- // Check if we have an X11 environment available
13
- public virtual bool IsDesktopSession => ! string . IsNullOrWhiteSpace ( Environment . GetEnvironmentVariable ( "DISPLAY" ) ) ;
12
+ // Check if we have an X11 or Wayland display environment available
13
+ public virtual bool IsDesktopSession =>
14
+ ! string . IsNullOrWhiteSpace ( Environment . GetEnvironmentVariable ( "DISPLAY" ) ) ||
15
+ ! string . IsNullOrWhiteSpace ( Environment . GetEnvironmentVariable ( "WAYLAND_DISPLAY" ) ) ;
14
16
}
15
17
}
You can’t perform that action at this time.
0 commit comments