message: Add parsing of the "/media" directory on FreeBSD to the External Device Paths LOS function.
diff: @@ -59,6 +59,23 @@ QStringList LOS::ExternalDevicePaths(){
  i--;
  }
  }
  + //Also add info about anything in the "/media" directory
  + QDir media("/media");
  + QFileInfoList list = media.entryInfoList(QDir::NoDotAndDotDot, QDir::Type | QDir::Name);
  + for(int i=0; i<list.length(); i++){
  + if(list[i].isDir()){
  + devs << "UNKNOWN::::directory::::/media/"+list[i].fileName();
  + }else if(list[i].fileName().endsWith(".desktop")){
  + QString type = list[i].fileName().section(".desktop",0,-2);
  + //Determine the type of hardware device based on the dev node
  + if(type.startsWith("da")){ type = "USB"; }
  + else if(type.startsWith("ada")){ type = "HDRIVE"; }
  + else if(type.startsWith("mmsd")){ type = "SDCARD"; }
  + else if(type.startsWith("cd")||type.startsWith("acd")){ type="DVD"; }
  + else{ type = "UNKNOWN"; }
  + devs << type+"::::unknown::::/media/"+list[i].fileName();
  + }
  + }
  return devs;
  }
  