diff options
author | Ken Moore <ken@ixsystems.com> | 2016-09-26 09:49:04 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-09-26 09:49:04 -0400 |
commit | 13f244c54d69fdb857ccd317a16d2cdf0bc80c09 (patch) | |
tree | e00ae2e7a92a3102efb9d87c83c4b6fc30d7aeba /src-qt5/core/libLumina/LuminaUtils.cpp | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | lumina-13f244c54d69fdb857ccd317a16d2cdf0bc80c09.tar.gz lumina-13f244c54d69fdb857ccd317a16d2cdf0bc80c09.tar.bz2 lumina-13f244c54d69fdb857ccd317a16d2cdf0bc80c09.zip |
Make sure that the extra lumina utilities check/set the XDG_* environment variables as needed. This allows things like icons to be found/used when LTE is launched via sudo (for instance).
Diffstat (limited to 'src-qt5/core/libLumina/LuminaUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaUtils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaUtils.cpp b/src-qt5/core/libLumina/LuminaUtils.cpp index dd4c75c4..8a35be6b 100644 --- a/src-qt5/core/libLumina/LuminaUtils.cpp +++ b/src-qt5/core/libLumina/LuminaUtils.cpp @@ -214,6 +214,7 @@ QString LUtils::PathToAbsolute(QString path){ } return path; } + QString LUtils::AppToAbsolute(QString path){ if(path.startsWith("~/")){ path = path.replace("~/", QDir::homePath()+"/" ); } if(path.startsWith("/") || QFile::exists(path)){ return path; } |