diff options
author | Ken Moore <ken@pcbsd.org> | 2016-07-25 10:57:09 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-07-25 10:57:09 -0400 |
commit | b51f02eb485ad743495146095f2bc2203be3dac8 (patch) | |
tree | 6729f19e19fc88cdda7eb6b3eec9b37dd5ef08a3 /src-qt5/core/lumina-session/session.cpp | |
parent | Ensure that a default compton.conf file is distributed with Lumina. (diff) | |
download | lumina-b51f02eb485ad743495146095f2bc2203be3dac8.tar.gz lumina-b51f02eb485ad743495146095f2bc2203be3dac8.tar.bz2 lumina-b51f02eb485ad743495146095f2bc2203be3dac8.zip |
Setup the copy over of the default compton.conf as needed.
Diffstat (limited to 'src-qt5/core/lumina-session/session.cpp')
-rw-r--r-- | src-qt5/core/lumina-session/session.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp index 47f1cf34..5f9ca6c4 100644 --- a/src-qt5/core/lumina-session/session.cpp +++ b/src-qt5/core/lumina-session/session.cpp @@ -98,10 +98,8 @@ void LSession::start(){ if(LUtils::isValidBinary("compton")){ QString set = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/compton.conf"; if(!QFile::exists(set)){ - QStringList dirs = QString(getenv("XDG_CONFIG_DIRS")).split(":"); - for(int i=0; i<dirs.length(); i++){ - if(QFile::exists(dirs[i]+"/compton.conf")){ QFile::copy(dirs[i]+"/compton.conf", set); break; } - else if(QFile::exists(dirs[i]+"/compton.conf.sample")){ QFile::copy(dirs[i]+"/compton.conf.sample", set); break; } + if(QFile::exists(LOS::LuminaShare()+"/compton.conf")){ + QFile::copy(LOS::LuminaShare()+"/compton.conf", set); } } if(!QFile::exists(set)){ |