Lines Matching refs:desktopFilePath

159     const QString desktopFilePath = srcDir + "/shouldfail.desktop";  in shouldFailOnNonExecutableDesktopFile()  local
160 writeTempServiceDesktopFile(desktopFilePath); in shouldFailOnNonExecutableDesktopFile()
161 m_filesToRemove.append(desktopFilePath); in shouldFailOnNonExecutableDesktopFile()
166 KService::Ptr servicePtr(new KService(desktopFilePath)); in shouldFailOnNonExecutableDesktopFile()
224 const QString desktopFilePath = in shouldFailOnNonExistingExecutable() local
226 KDesktopFile file(desktopFilePath); in shouldFailOnNonExistingExecutable()
237 KService::Ptr servicePtr(new KService(desktopFilePath)); in shouldFailOnNonExistingExecutable()
239 …job->setUrls({QUrl::fromLocalFile(desktopFilePath)}); // just to have one URL as argument, as the … in shouldFailOnNonExistingExecutable()
251 QFile::remove(desktopFilePath); in shouldFailOnNonExistingExecutable()
256 const QString desktopFilePath = in shouldFailOnInvalidService() local
258 KDesktopFile file(desktopFilePath); in shouldFailOnInvalidService()
266 KService::Ptr servicePtr(new KService(desktopFilePath)); in shouldFailOnInvalidService()
271 …g expectedError = QStringLiteral("The desktop entry file\n%1\nis not valid.").arg(desktopFilePath); in shouldFailOnInvalidService()
274 QFile::remove(desktopFilePath); in shouldFailOnInvalidService()
279 const QString desktopFilePath = in shouldFailOnServiceWithNoExec() local
281 KDesktopFile file(desktopFilePath); in shouldFailOnServiceWithNoExec()
287 …sage(QtWarningMsg, qPrintable(QString("No Exec field in \"%1\"").arg(desktopFilePath))); // from K… in shouldFailOnServiceWithNoExec()
288 KService::Ptr servicePtr(new KService(desktopFilePath)); in shouldFailOnServiceWithNoExec()
293 QCOMPARE(job->errorString(), QStringLiteral("No Exec field in %1").arg(desktopFilePath)); in shouldFailOnServiceWithNoExec()
295 QFile::remove(desktopFilePath); in shouldFailOnServiceWithNoExec()
311 const QString desktopFilePath = in shouldFailOnExecutableWithoutPermissions() local
313 KDesktopFile file(desktopFilePath); in shouldFailOnExecutableWithoutPermissions()
320 KService::Ptr servicePtr(new KService(desktopFilePath)); in shouldFailOnExecutableWithoutPermissions()
327 QFile::remove(desktopFilePath); in shouldFailOnExecutableWithoutPermissions()