| 311 | }; |
| 312 | |
| 313 | QList<Mount> listMounts() { |
| 314 | QList<Mount> mountedDirectories; |
| 315 | |
| 316 | std::ifstream ifs("/proc/mounts"); |
| 317 | |
| 318 | std::string _currentLine; |
| 319 | while (std::getline(ifs, _currentLine)) { |
| 320 | const auto currentLine = QString::fromStdString(_currentLine); |
| 321 | |
| 322 | const auto parts = currentLine.split(" "); |
| 323 | |
| 324 | mountedDirectories << Mount{parts[0], parts[1], parts[2], parts[3]}; |
| 325 | } |
| 326 | |
| 327 | return mountedDirectories; |
| 328 | } |
| 329 | |
| 330 | QSet<QString> additionalAppImagesLocations(const bool includeAllMountPoints) { |
| 331 | QSet<QString> additionalLocations; |
no outgoing calls
no test coverage detected