diff options
author | q5sys <jt@xsystems.com> | 2017-10-31 10:10:51 -0400 |
---|---|---|
committer | q5sys <jt@xsystems.com> | 2017-10-31 10:10:51 -0400 |
commit | adf9932d1a1a7a45a786753aca878ed906c25a49 (patch) | |
tree | 84b44b49bd0da11c10098cca2032b24396c3714c /src-qt5/core/libLumina/LuminaXDG.cpp | |
parent | Finish up the theme engine migration path (works fine now - after some testing). (diff) | |
download | lumina-adf9932d1a1a7a45a786753aca878ed906c25a49.tar.gz lumina-adf9932d1a1a7a45a786753aca878ed906c25a49.tar.bz2 lumina-adf9932d1a1a7a45a786753aca878ed906c25a49.zip |
fix for XDG processing
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaXDG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp index aaca7bb1..492a296c 100644 --- a/src-qt5/core/libLumina/LuminaXDG.cpp +++ b/src-qt5/core/libLumina/LuminaXDG.cpp @@ -729,7 +729,8 @@ bool LFileInfo::isAVFile(){ bool LXDG::checkExec(QString exec){ //Return true(good) or false(bad) //Check for quotes around the exec, and remove them as needed - if(exec.startsWith("\"") && exec.count("\"")>=2){ exec = exec.section("\"",1,1); } + if(exec.startsWith("\"") && exec.count("\"")>=2){ exec = exec.section("\"",1,1).simplified(); } + if(exec.startsWith("\'") && exec.count("\'")>=2){ exec = exec.section("\'",1,1).simplified(); } if(exec.startsWith("/")){ return QFile::exists(exec); } else{ QStringList paths = QString(getenv("PATH")).split(":"); |