aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-11-02 11:07:43 -0400
committerKen Moore <ken@ixsystems.com>2017-11-02 11:07:43 -0400
commit7bddf2f2becb8451e32d179b1d379f40a28274c2 (patch)
tree614bcf46d9f44cd9b2765500463dda5b19889fbc /src-qt5/core
parentAdd parsing of the "/media" directory on FreeBSD to the External Device Paths... (diff)
downloadlumina-7bddf2f2becb8451e32d179b1d379f40a28274c2.tar.gz
lumina-7bddf2f2becb8451e32d179b1d379f40a28274c2.tar.bz2
lumina-7bddf2f2becb8451e32d179b1d379f40a28274c2.zip
Finish up the /media parsing for LuminaOS-FreeBSD
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp
index a1c82fc9..6ff144d5 100644
--- a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp
+++ b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp
@@ -61,8 +61,10 @@ QStringList LOS::ExternalDevicePaths(){
}
//Also add info about anything in the "/media" directory
QDir media("/media");
- QFileInfoList list = media.entryInfoList(QDir::NoDotAndDotDot, QDir::Type | QDir::Name);
+ QFileInfoList list = media.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Type | QDir::Name);
+ //qDebug() << "Media files found:" << list.length();
for(int i=0; i<list.length(); i++){
+ //qDebug() << "Found media entry:" << list[i].fileName();
if(list[i].isDir()){
devs << "UNKNOWN::::directory::::/media/"+list[i].fileName();
}else if(list[i].fileName().endsWith(".desktop")){
bgstack15