mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -07:00
Don't try to display the GUI when running in textmode
This commit is contained in:
parent
14d7657703
commit
3414ec8027
1 changed files with 11 additions and 2 deletions
|
@ -274,8 +274,17 @@ int main(int argc, char* argv[]) {
|
||||||
pthread_mutex_init(&print_lock, NULL);
|
pthread_mutex_init(&print_lock, NULL);
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
#ifdef HAVE_GUI
|
||||||
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
char* display = getenv("DISPLAY");
|
||||||
MainGraphics();
|
|
||||||
|
if (display && strlen(display) > 1)
|
||||||
|
{
|
||||||
|
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
||||||
|
MainGraphics();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
main_loop(script_cmds_file, usb_present);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
main_loop(script_cmds_file, usb_present);
|
main_loop(script_cmds_file, usb_present);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue