mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
FIX: when running on ssh, client would fail. see https://github.com/Proxmark/proxmark3/pull/387 (thanks @uzlonewolf)
This commit is contained in:
parent
80d2a01ea6
commit
3764b02a2e
1 changed files with 13 additions and 0 deletions
|
@ -306,8 +306,21 @@ int main(int argc, char* argv[]) {
|
||||||
pthread_mutex_init(&print_lock, NULL);
|
pthread_mutex_init(&print_lock, NULL);
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
#ifdef HAVE_GUI
|
||||||
|
|
||||||
|
# if _WIN32
|
||||||
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
||||||
MainGraphics();
|
MainGraphics();
|
||||||
|
# else
|
||||||
|
// for *nix distro's, check enviroment variable to verify a display
|
||||||
|
char* display = getenv("DISPLAY");
|
||||||
|
if (display && strlen(display) > 1) {
|
||||||
|
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
||||||
|
MainGraphics();
|
||||||
|
} else {
|
||||||
|
main_loop(script_cmds_file, usb_present);
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
#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