Add x11 backend runner support (#22)

This commit is contained in:
Hidenori Matsubayashi
2021-07-27 14:48:40 +09:00
committed by GitHub
parent 0a3ef762f5
commit d2a2a44002
3 changed files with 37 additions and 12 deletions
+15 -1
View File
@@ -121,7 +121,7 @@ class ELinuxDeviceDiscovery extends PollingDeviceDiscovery {
// Adds current desktop host.
devices.add(
ELinuxDevice('elinux',
ELinuxDevice('elinux-wayland',
desktop: true,
targetArch: _getCurrentHostPlatformArchName(),
backendType: 'wayland',
@@ -134,6 +134,20 @@ class ELinuxDeviceDiscovery extends PollingDeviceDiscovery {
processManager: const LocalProcessManager(),
)),
);
devices.add(
ELinuxDevice('elinux-x11',
desktop: true,
targetArch: _getCurrentHostPlatformArchName(),
backendType: 'x11',
logger: _logger ?? globals.logger,
processManager: _processManager ?? globals.processManager,
operatingSystemUtils: OperatingSystemUtils(
fileSystem: globals.fs,
logger: _logger ?? globals.logger,
platform: globals.platform,
processManager: const LocalProcessManager(),
)),
);
// Adds remote devices.
for (final ELinuxRemoteDeviceConfig remoteDevice