From fc05d19a809f07ea682aa4d1dab6246d72a256b8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sat, 26 Apr 2014 19:19:27 +0200 Subject: Adapt to changes in KDEInstallDirs kde5/services is kservices5 kde5/servicetypes is kservicestypes5 --- autotests/kdesktopfiletest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autotests/kdesktopfiletest.cpp') diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp index 08d9f142..494a43c0 100644 --- a/autotests/kdesktopfiletest.cpp +++ b/autotests/kdesktopfiletest.cpp @@ -122,14 +122,14 @@ void KDesktopFileTest::testIsAuthorizedDesktopFile() QVERIFY(QFile::exists(fileName)); QVERIFY(!KDesktopFile::isAuthorizedDesktopFile(fileName)); - const QString installedFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("/kde5/services/") + "http_cache_cleaner.desktop"); + const QString installedFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("/kservices5/http_cache_cleaner.desktop")); if (!installedFile.isEmpty()) { QVERIFY(KDesktopFile::isAuthorizedDesktopFile(installedFile)); } else { qWarning("Skipping test for http_cache_cleaner.desktop, not found. kio not installed?"); } - const QString autostartFile = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QLatin1String("autostart/") + "plasma-desktop.desktop"); + const QString autostartFile = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("autostart/plasma-desktop.desktop")); if (!autostartFile.isEmpty()) { QVERIFY(KDesktopFile::isAuthorizedDesktopFile(autostartFile)); } else { -- cgit v1.2.1