Skip to content

Commit 1e9755d

Browse files
committed
(#91) Revert Linux startup check
1 parent 7efb57f commit 1e9755d

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/startup.h

-19
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,4 @@ static void startupCheck(void)
1414
}
1515
}
1616

17-
#elif defined(USE_X11)
18-
19-
#include "xdisplay.h"
20-
21-
static void startupCheck(void) __attribute__((constructor));
22-
static void startupCheck(void)
23-
{
24-
Display *display = XOpenDisplay(NULL);
25-
26-
int32_t majorOpcode;
27-
int32_t firstEvent;
28-
int32_t firstError;
29-
bool isXTestAvailable = XQueryExtension(display, "XTEST", &majorOpcode, &firstEvent, &firstError);
30-
31-
if (!isXTestAvailable) {
32-
std::cout << "##### WARNING! Your system is missing libXtst! Please visit https://github.com/nut-tree/nut.js#linux #####" << std::endl;
33-
}
34-
}
35-
3617
#endif

0 commit comments

Comments
 (0)