mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-14 15:23:39 +00:00
1. Added addition native JS helpers
2. Updated metadata
This commit is contained in:
@@ -29,6 +29,8 @@ function dbus(address, uid, env)
|
||||
.createEvent('signal');
|
||||
Object.defineProperty(this, "uid", { value: uid });
|
||||
this._child = require('child_process').execFile("/bin/sh", ["sh"], options);
|
||||
this._child.descriptorMetadata = 'linux-dbus {uid: ' + uid + ', address: ' + address + '}';
|
||||
|
||||
if (uid != null)
|
||||
{
|
||||
this._child.stdin.write('dbus-monitor --session "type=\'signal\', interface=\'' + address + '\'" | ( while read X; do echo "$X"; done )\n');
|
||||
|
||||
Reference in New Issue
Block a user