mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-02-08 04:33:23 +00:00
Updated, so Linux Distros that don't have XServer instances running when no users are logged in, will display a descriptive message
This commit is contained in:
@@ -1468,6 +1468,17 @@ duk_ret_t ILibDuktape_MeshAgent_getRemoteDesktop(duk_context *ctx)
|
||||
return(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (console_uid != 0)
|
||||
{
|
||||
ILibDuktape_MeshAgent_RemoteDesktop_SendError(ptrs, "This system does not appear to have an XServer running");
|
||||
}
|
||||
else
|
||||
{
|
||||
ILibDuktape_MeshAgent_RemoteDesktop_SendError(ptrs, "This system does not appear to have an XServer instance running when no users are logged in");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user