ehm... just drop this or turn it into an if (tmpPath.isEmpty()) qFatal("DeviceInfo: can't determine home directory");, I can't imagine any situation where this would ever happen, and trying to handle it is pretty ugly