Skip to content

Commit 28c0771

Browse files
author
Javier Acuna
committed
Merge branch 'develop' into 'master'
Develop See merge request prey/js/prey-node-client!1305
2 parents f76ba65 + a3ebb4b commit 28c0771

26 files changed

Lines changed: 9671 additions & 10180 deletions

File tree

bin/wpxsvc.exe

-512 Bytes
Binary file not shown.

lib/agent/actions/alert/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Prey Alert
2-
// Written by Tomas Pollak
32

43
var join = require('path').join,
54
common = require('./../../common'),
@@ -9,7 +8,7 @@ var join = require('path').join,
98
actions_app = join(__dirname, '..', '..', 'utils', 'prey-actions.app'),
109
Emitter = require('events').EventEmitter,
1110
is_win = process.platform == 'win32',
12-
is_linux = process.platform == 'linux';
11+
is_linux = process.platform == 'linux';
1312

1413
var child,
1514
emitter,
@@ -45,9 +44,19 @@ exports.start = function(id, opts, cb) {
4544
args.push('-m', message); // in windows, the bin expects a -m message argument
4645
args.push('-t', '');
4746
bin += '.exe';
47+
4848
} else if (is_linux) {
49-
args.push(message);
50-
bin += ((system.python_version && system.python_version >= "3.0.0") ? '3.py' : '.py');
49+
bin = "zenity";
50+
args = ['--info', '--text=' + message];
51+
52+
system.get_env((err, env) => {
53+
// Overwrite ENV variables for logged user
54+
if (!err && env) {
55+
process.env.DISPLAY = env.display;
56+
process.env.XAUTHORITY = env.xauthority;
57+
}
58+
});
59+
5160
} else {
5261
if (common.os_release >= '10.14') {
5362
app = prey_app;

lib/agent/actions/alert/linux/flash.py

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)