diff options
author | shitbangs <brouwer@annejan.com> | 2014-08-17 18:14:11 +0200 |
---|---|---|
committer | shitbangs <anony@mous> | 2014-08-17 18:14:11 +0200 |
commit | bdc20529f9cd836f2277829750a5c047ad37983c (patch) | |
tree | 87a8992bf967f498bd16dd9bad98e0035a4f49a8 /util.h | |
parent | b280b463e60da571cf48b046e1b89f241a40de50 (diff) |
Replaced calls to `which` with custom path resolution thingie
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#ifndef UTIL_H +#define UTIL_H + +#include <QString> +#include <QProcessEnvironment> + +class Util +{ +public: + static QString findBinaryInPath(QString binary); +private: + static void initialiseEnvironment(); + static QProcessEnvironment _env; + static bool _envInitialised; +}; + +#endif // UTIL_H |