mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
fixes from #616
This commit is contained in:
parent
d2d126878e
commit
a2c7158f78
13 changed files with 25 additions and 30 deletions
|
@ -62,13 +62,9 @@ extern "C" void MainGraphics(void)
|
|||
extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present)
|
||||
{
|
||||
#ifdef Q_WS_X11
|
||||
bool useGUI = getenv("DISPLAY") != 0;
|
||||
#else
|
||||
bool useGUI = true;
|
||||
#endif
|
||||
if (!useGUI)
|
||||
if (getenv("DISPLAY") == NULL)
|
||||
return;
|
||||
|
||||
#endif
|
||||
main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, usb_present);
|
||||
gui = new ProxGuiQT(argc, argv, main_loop_thread);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue