mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
set wallpaper icon red if wallpaper removed (#5533)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
12c3e4ee53
commit
5c527c4632
3 changed files with 9 additions and 1 deletions
|
|
@ -1356,11 +1356,13 @@ function handleServerCommand(data) {
|
|||
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
||||
child.stderr.on('data', function () { });
|
||||
child.waitExit();
|
||||
mesh.SendCommand({ action: 'msg', type: 'deskBackground', sessionid: data.sessionid, data: (current != '' ? "" : require('MeshAgent')._wallpaper), });
|
||||
} else {
|
||||
var id = require('user-sessions').consoleUid();
|
||||
var current = require('linux-gnome-helpers').getDesktopWallpaper(id);
|
||||
if (current != '/dev/null') { require('MeshAgent')._wallpaper = current; }
|
||||
require('linux-gnome-helpers').setDesktopWallpaper(id, current != '/dev/null' ? undefined : require('MeshAgent')._wallpaper);
|
||||
mesh.SendCommand({ action: 'msg', type: 'deskBackground', sessionid: data.sessionid, data: (current != '/dev/null' ? "" : require('MeshAgent')._wallpaper), });
|
||||
}
|
||||
} catch (ex) {
|
||||
sendConsoleText(ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue