X-Git-Url: https://git.cworth.org/git?p=apitrace;a=blobdiff_plain;f=gui%2Fmain.cpp;h=3ae56db1768ecc6528446006e2f4c77146fb74c8;hp=0ed50ed8f2b33506f931f570d9662430d59712ec;hb=ebe01ce9942e570f23b40793e97cf02b6f3616ee;hpb=857c292110606679d2ba7de05d2782b5a36a5542 diff --git a/gui/main.cpp b/gui/main.cpp index 0ed50ed..3ae56db 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -32,6 +32,13 @@ int main(int argc, char **argv) qRegisterMetaType(); qRegisterMetaType(); qRegisterMetaType >(); + +#ifndef Q_OS_WIN + QString path = qgetenv("PATH"); + path = QLatin1String(APITRACE_BINARY_DIR) + QLatin1String(":") + path; + qputenv("PATH", path.toLatin1()); +#endif + QStringList args = app.arguments(); int i = 1;