mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-20 10:13:17 +00:00
Added displayWake() to kvm for macOS
This commit is contained in:
@@ -1134,6 +1134,11 @@ duk_ret_t ILibDuktape_MeshAgent_getRemoteDesktop(duk_context *ctx)
|
||||
duk_pop(ctx);
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
duk_peval_string_noresult(ctx, "require('power-monitor').wakeDisplay();");
|
||||
#endif
|
||||
|
||||
duk_get_prop_string(ctx, -1, MESH_AGENT_PTR);
|
||||
agent = (MeshAgentHostContainer*)duk_get_pointer(ctx, -1);
|
||||
duk_pop(ctx);
|
||||
|
||||
Reference in New Issue
Block a user