1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-22 11:13:21 +00:00

Added virtual support for XFCE

This commit is contained in:
Bryan Roe
2022-04-27 22:36:09 -07:00
parent 3a79731fed
commit 37024e2e28
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -34,6 +34,7 @@ if (process.platform == 'linux')
const hasXvfb = require('lib-finder').hasBinary('xvfb-run');
const hasGnomeSession = require('lib-finder').hasBinary('gnome-session');
const hasLxde = require('lib-finder').hasBinary('startlxde');
const hasXfce = require('lib-finder').hasBinary('startxfce4');
var arg = _MSH().allowedUIDs;
if (arg) { try { allowedUIDs = JSON.parse(arg) } catch (z) { allowedUIDs = []; } }
@@ -63,9 +64,13 @@ if (process.platform == 'linux')
case 'LXDE':
if (hasLxde) { startDM = 'startlxde'; }
break;
case 'XFCE':
if (hasXfce) { startDM = 'startxfce4'; }
break;
default:
if (hasGnomeSession) { startDM = 'gnome-session'; }
if (hasLxde) { startDM = 'startlxde'; }
if (hasXfce) { startDM = 'startxfce4'; }
break;
}