1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 05:13:38 +00:00

Fixed bug in xwayland check

This commit is contained in:
Bryan Roe
2020-05-18 15:46:33 -07:00
parent 5584a3d866
commit f115066e68

View File

@@ -1415,7 +1415,7 @@ duk_ret_t ILibDuktape_MeshAgent_getRemoteDesktop(duk_context *ctx)
{ {
updateXAuth = Duktape_GetStringPropertyValue(ctx, -1, "xauthority", NULL); updateXAuth = Duktape_GetStringPropertyValue(ctx, -1, "xauthority", NULL);
updateDisplay = Duktape_GetStringPropertyValue(ctx, -1, "display", NULL); updateDisplay = Duktape_GetStringPropertyValue(ctx, -1, "display", NULL);
xdm = Duktape_GetStringPropertyValue(ctx, -1, "xdm", NULL); xdm = Duktape_GetStringPropertyValue(ctx, -1, "xdm", "");
if (strcmp(xdm, "xwayland") == 0) if (strcmp(xdm, "xwayland") == 0)
{ {