1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 12:13:16 +00:00
Commit Graph

363 Commits

Author SHA1 Message Date
Bryan Roe
45ea5722b8 updated to cleanup better 2019-05-23 16:27:37 -07:00
Bryan Roe
2895768ebf 1. Added 'close' to net.server
2. updated message-box for MacOS (In Progress)
2019-05-23 15:41:00 -07:00
Bryan Roe
1a1ba0084e Updated MacOS service-manager to support LaunchAgents, and updated to support launchctl 2.0 API on Mac OS 10.10 and above 2019-05-22 13:50:03 -07:00
Bryan Roe
567feba9ff 1. Updated service-manager to support installing LaunchAgents
2. Started skeleton code for MacOS message-box
2019-05-20 17:25:25 -07:00
Bryan Roe
e28b5d7b0e 1. Added support for KDE
2. Added zenity fallback for platforms where notify-send doesn't work correctly
2019-05-18 02:48:27 -07:00
Bryan Roe
020bae80a5 1. Added ability to search env vars by uid
2. updated toaster to work with KDE
2019-05-17 22:10:52 -07:00
Bryan Roe
bbe2098b7e 1. Integrated win-console on windows
2. Updated toaster, to better support linux. And updated flow for windows.
2019-05-17 16:10:36 -07:00
Bryan Roe
f4f0a37522 updated getXInfo, so returns only DISPLAY if XAUTHORITY is not found 2019-05-17 16:09:47 -07:00
Bryan Roe
1fc476d31e 1. Added process.pid on windows
2. Added user-sessions.consoleUid() on windows
3. updated message-box to dispatch to consoleUid when necessary on Windows
2019-05-17 14:23:51 -07:00
Bryan Roe
842a7d475b Added initial rev of message-box, to allow spawning a dialog box into a user context 2019-05-16 15:07:47 -07:00
Bryan Roe
5e0bc797a7 Updated promise, so you can't resolve/reject more than once 2019-05-16 11:17:11 -07:00
Bryan Roe
2c45d57259 Fixed typo with nodeid helper on windows 2019-05-07 12:06:22 -07:00
Bryan Roe
5f535d8664 Updated task-scheduler for MacOS 2019-04-22 17:17:23 -07:00
Bryan Roe
1adcae7957 Added 'isLoaded' and 'load' helper on MacOS 2019-04-19 15:12:06 -07:00
Bryan Roe
c64a726f2d Updated service-manager for MacOS to better tolerate KeepAlive settings 2019-04-19 14:22:28 -07:00
Bryan Roe
6e543689f5 Updates service-manager on MacOS so Start/Stop calls load/unload when necessary 2019-04-18 14:50:38 -07:00
Bryan Roe
ec1a39af53 Fixed bug on Upstart Linux platforms, where task didn't start correctly. 2019-04-18 11:43:18 -07:00
Bryan Roe
921c636bac 1. Added 'close' to getService() return object. (NOOP on Linux/MacOS)
2. Updated uninstallService on windows, to force close service handles.
2019-04-17 14:55:10 -07:00
Bryan Roe
7f647b42d0 Removed debug print message 2019-04-12 13:34:07 -07:00
Bryan Roe
9aae4c7508 1. Updated service-manager to support dependencies from Buffer
2. Updated service-host to have a 'create' method
2019-04-09 14:47:49 -07:00
Bryan Roe
7bf31b0a28 1. Added setting for Windows Certificate Store
2. Updated so NodeID is only saved on Windows, if Certificate Store is used
2019-04-08 17:44:49 -07:00
Bryan Roe
a5000eee85 Updated, so windows will save NodeID to db 2019-04-08 15:42:08 -07:00
Bryan Roe
d457364197 Updated, so getService() on Windows will show owning user 2019-04-08 15:41:41 -07:00
Bryan Roe
41da3514d2 initial rev of Windows Certificate Store API 2019-04-06 23:04:06 -07:00
Bryan Roe
4e4a9f97a8 Implemented task-scheduler for MacOS 2019-03-29 03:03:27 -07:00
Bryan Roe
0e67ee8f48 Updated service-manager on MacOS so it can accomodate naming inconsistency between plist and service name 2019-03-28 21:46:35 -07:00
Bryan Roe
f10497b4b0 Updated service-manager for MacOS:
1. Added start, stop, restart
2. Added isRunning, isMe
2019-03-28 21:21:53 -07:00
Bryan Roe
7fd2945b62 Starting to add 'getService' for MacOS 2019-03-28 18:11:13 -07:00
Bryan Roe
9148dbb1de service-manager update:
1. Added 'appWorkingDirectory()' to getService()
2. Fixed bug where init.d services didn't have working dir set
2019-03-28 16:44:33 -07:00
Bryan Roe
b54d09876c Updated service-manager:
1. Updated to allow specifying alternate target filename
2. Updated uninstallService, to use the application location specified by service, on linux and MacOS
3. Updated AppLocation on systemd to parse ExecStart
2019-03-27 22:45:47 -07:00
Bryan Roe
9db8b4d349 From Ylian:
Changed new Buffer to Buffer.alloc
Fixed Base64 encoding
Updated copyright
Updated meshcmd
2019-03-27 15:06:04 -07:00
Bryan Roe
57a9de8a03 Updated service-manager:
1. Fixed bug with setting service description on Windows
2. Added ability to set failure restart options
2019-03-22 23:34:17 -07:00
Bryan Roe
45f5859f37 1. Added 'getEnvFromPid' to user-sessions, to read environment vars by PID
2 Updated getXInfo() in monitor-info, so it'll try to get XAUTHORITY from env vars is it can't determine it by looking at the XServer instance.
2019-03-15 12:48:30 -07:00
Bryan Roe
0048acf128 Updated to only use fs.Watch if it exists 2019-03-14 15:41:10 -07:00
Bryan Roe
6352c35e22 Updated, so on upstart platforms, it uses initctl instead of service, to fix problems on older upstart platforms that don't map service to initctl. 2019-03-14 02:53:44 -07:00
Bryan Roe
3c694116e6 Updated dispatchWrite 2019-03-14 02:05:53 -07:00
Bryan Roe
0248c5cd66 Updated Linux Copy Clipboard 2019-03-13 17:35:44 -07:00
Bryan Roe
9d907dc5a3 Start to update linux clipboard write 2019-03-13 01:52:31 -07:00
Bryan Roe
6a8b7de44c 1. Updated monitor-info, so it no longer assumes DISPLAY = :0
2. Updated user-sessions to have better uid and username helpers on linux
3. Updated Clipboard dispatching
2019-03-12 22:25:56 -07:00
Bryan Roe
ec96a536eb Added XSetSelectionOwner 2019-03-12 10:47:07 -07:00
Bryan Roe
499da726c5 Added code to fetch details about the XServer 2019-03-11 23:35:19 -07:00
Bryan Roe
37f4a5af3f 1. Integrated win-message-pump on windows
2. Updated clipboard to dispatch read/write to a user process
2019-03-06 22:58:23 -08:00
Bryan Roe
2a8347be26 Added 'isMe' to service object for linux 2019-03-06 16:39:18 -08:00
Bryan Roe
9ffefcdd09 integrated task-scheduler 2019-03-06 15:21:04 -08:00
Bryan Roe
75b55823ef 1. Added '.manager' singleton to service-manager.js
2. Updated fs.writeFileSync to support options.mode
3. Updated Linux Task Scheduler
2019-03-06 15:09:45 -08:00
Bryan Roe
f667e9c8f9 Initial Linux parsing 2019-03-06 12:20:30 -08:00
Bryan Roe
c3f01ac2bf initial support for windows 2019-03-06 00:20:30 -08:00
Bryan Roe
0dc02d1495 Updated default service type to manual on Windows. Updated, to add ability to copy dependency files, using a different name 2019-03-05 15:50:28 -08:00
Bryan Roe
496a0b7508 1. integrated service-host
2. Fixed bug where windows service didn't delete the binary on uninstall
2019-03-05 14:59:44 -08:00
Bryan Roe
5fbcf23045 Added '-nodeid' command switch, to display Agent Node ID 2019-03-05 10:51:57 -08:00