aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS-OpenBSD.cpp
diff options
context:
space:
mode:
authorwilliam os4y <william.os4y@gmail.com>2015-02-22 23:00:55 +0100
committerwilliam os4y <william.os4y@gmail.com>2015-02-22 23:45:36 +0100
commit46f35858786fbc8345fd6b32b970c3597300da61 (patch)
treed5875ec05d7699c353fe09325d6d4dbf6de224a1 /libLumina/LuminaOS-OpenBSD.cpp
parentUpdate the ROADMAP to 1.0.0-Release (diff)
downloadlumina-46f35858786fbc8345fd6b32b970c3597300da61.tar.gz
lumina-46f35858786fbc8345fd6b32b970c3597300da61.tar.bz2
lumina-46f35858786fbc8345fd6b32b970c3597300da61.zip
fix for ExternalDevices on OpenBSD
Diffstat (limited to 'libLumina/LuminaOS-OpenBSD.cpp')
-rw-r--r--libLumina/LuminaOS-OpenBSD.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libLumina/LuminaOS-OpenBSD.cpp b/libLumina/LuminaOS-OpenBSD.cpp
index ffc21fa4..44917a6e 100644
--- a/libLumina/LuminaOS-OpenBSD.cpp
+++ b/libLumina/LuminaOS-OpenBSD.cpp
@@ -31,14 +31,16 @@ QStringList LOS::ExternalDevicePaths(){
//Now check the output
for(int i=0; i<devs.length(); i++){
if(devs[i].startsWith("/dev/")){
- QString type = devs[i].section(" on ",0,0);
- type.remove("/dev/");
+ QString type = devs[i].section(" ",0,0);
+ type.remove("/dev/");
//Determine the type of hardware device based on the dev node
if(type.startsWith("sd")||type.startsWith("wd")){ type = "HDRIVE"; }
else if(type.startsWith("cd")){ type="DVD"; }
else{ type = "UNKNOWN"; }
//Now put the device in the proper output format
- devs[i] = type+"::::"+devs[i].section("(",1,1).section(",",0,0)+"::::"+devs[i].section(" on ",1,50).section("(",0,0).simplified();
+ QString fs = devs[i].section(" ", 4, 4);
+ QString path = devs[i].section(" ",2, 2);
+ devs[i] = type+"::::"+fs+"::::"+path;
}else{
//invalid device - remove it from the list
devs.removeAt(i);
bgstack15