| 1098 | } |
| 1099 | |
| 1100 | time_t getMTime(const QString& path) { |
| 1101 | struct stat st{}; |
| 1102 | if (stat(path.toStdString().c_str(), &st) != 0) { |
| 1103 | displayError(QObject::tr("Failed to call stat() on path:\n\n%1").arg(path)); |
| 1104 | return -1; |
| 1105 | } |
| 1106 | |
| 1107 | return st.st_mtim.tv_sec; |
| 1108 | } |
| 1109 | |
| 1110 | bool desktopFileHasBeenUpdatedSinceLastUpdate(const QString& pathToAppImage) { |
| 1111 | const auto ownBinaryPath = getOwnBinaryPath(); |
no test coverage detected