diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index 7815a58ddc..38b16bc558 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -2386,10 +2386,16 @@ bool FSIsDeskDir(const BEntry *entry, dev_t device) { BVolume volume(device); + status_t result = volume.InitCheck(); if (result != B_OK) return false; + BVolume bootvolume; + BVolumeRoster roster; + if (roster.GetBootVolume(&bootvolume) == B_OK && volume != bootvolume) + return false; + BPath path; result = find_directory(B_DESKTOP_DIRECTORY, &path, true, &volume); if (result != B_OK)