Further ChromeOS support: Detect removable media mounted through ChromeOS

This commit is contained in:
Vojtech Bubnik 2021-03-11 12:22:06 +01:00
parent 9c80c6a4af
commit 2b19708720
2 changed files with 5 additions and 0 deletions

View file

@ -247,6 +247,9 @@ std::vector<DriveData> RemovableDriveManager::search_for_removable_drives() cons
path = "/run" + path;
pp = "/run"+pp;
search_for_drives_internal::search_path(path, pp, current_drives);
// ChromeOS specific: search /mnt/chromeos/removable/* folder
search_for_drives_internal::search_path("/mnt/chromeos/removable/*", "/mnt/chromeos/removable", current_drives);
#endif
return current_drives;