Skip to content

Commit

Permalink
fixed macos ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarmix committed Oct 5, 2023
1 parent 4c51c75 commit f5b3a40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hexwalk/binanalysisdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ binanalysisdialog::binanalysisdialog(QHexEdit *hexEdit,QWidget *parent) :
file.close();
}
#else
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
binwalkProcess->setProcessEnvironment(env);
QString path = qgetenv("PATH");
path = path + ":/usr/local/bin:/opt/homebrew/bin:/opt/local/bin";
qputenv("PATH",path.toUtf8());
#endif


Expand Down

0 comments on commit f5b3a40

Please sign in to comment.