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:
File diff suppressed because one or more lines are too long
@@ -34,6 +34,7 @@ if (process.platform == 'linux')
|
|||||||
const hasXvfb = require('lib-finder').hasBinary('xvfb-run');
|
const hasXvfb = require('lib-finder').hasBinary('xvfb-run');
|
||||||
const hasGnomeSession = require('lib-finder').hasBinary('gnome-session');
|
const hasGnomeSession = require('lib-finder').hasBinary('gnome-session');
|
||||||
const hasLxde = require('lib-finder').hasBinary('startlxde');
|
const hasLxde = require('lib-finder').hasBinary('startlxde');
|
||||||
|
const hasXfce = require('lib-finder').hasBinary('startxfce4');
|
||||||
|
|
||||||
var arg = _MSH().allowedUIDs;
|
var arg = _MSH().allowedUIDs;
|
||||||
if (arg) { try { allowedUIDs = JSON.parse(arg) } catch (z) { allowedUIDs = []; } }
|
if (arg) { try { allowedUIDs = JSON.parse(arg) } catch (z) { allowedUIDs = []; } }
|
||||||
@@ -63,9 +64,13 @@ if (process.platform == 'linux')
|
|||||||
case 'LXDE':
|
case 'LXDE':
|
||||||
if (hasLxde) { startDM = 'startlxde'; }
|
if (hasLxde) { startDM = 'startlxde'; }
|
||||||
break;
|
break;
|
||||||
|
case 'XFCE':
|
||||||
|
if (hasXfce) { startDM = 'startxfce4'; }
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (hasGnomeSession) { startDM = 'gnome-session'; }
|
if (hasGnomeSession) { startDM = 'gnome-session'; }
|
||||||
if (hasLxde) { startDM = 'startlxde'; }
|
if (hasLxde) { startDM = 'startlxde'; }
|
||||||
|
if (hasXfce) { startDM = 'startxfce4'; }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user