on xenial help sign in
Guard check for cleanliness, though it shouldn't matter
commitd7f92d3d489f60705f921955542bbaed762d01bd authorMichael Terry <michael.terry@canonical.com> dateTue 4 Oct 2016, 09:57 (10 years ago) parent6314581
1 file changed+1−1
include/paths.h.in+1−1
include/paths.h.in+1−1
@@ -28,7 +28,7 @@ inline QString installRoot() {
2828 static bool installRootSet = false;
2929 if (!installRootSet) {
3030 QString snapRoot = QFile::decodeName(qgetenv("SNAP"));
31− if (QCoreApplication::applicationDirPath() ==
31+ if (!snapRoot.isEmpty() && QCoreApplication::applicationDirPath() ==
3232 QDir(snapRoot + QStringLiteral("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath()) {
3333 installRoot = snapRoot;
3434 } else if (QCoreApplication::applicationDirPath() ==