diff options
Diffstat (limited to 'tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp')
-rw-r--r-- | tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp b/tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp index ac3fffbe1..32e23ea14 100644 --- a/tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp +++ b/tests/auto/installer/createdesktopentryoperation/tst_createdesktopentryoperation.cpp @@ -73,6 +73,8 @@ private: .split(QLatin1Char(':'), QString::SkipEmptyParts); // Default path if XDG_DATA_HOME is not set directories.append(QDir::home().absoluteFilePath(QLatin1String(".local/share"))); + // Default path if run as root + directories.append(QLatin1String("/usr/local/share")); bool validPath = false; foreach (const QString &dir, directories) { // Desktop entry should be in one of the expected locations |