I don't remember exactly why we did this, but I think that applicationDirPath() isn't returning the values we expect after installing files to the standard system paths.

Maybe this can be wrapped in some macro logic, for example,

```
#ifdef XTUPLE_LIB_DIR
QString appPath(XTUPLE_LIB_DIR)
#else
QString appPath = QApplication::applicationDirPath();
#endif
```

XTUPLE_LIB_DIR could then be set through a config.h file or something when building packages.