From c26f775e189e077936b1953a0b10814ff7ca5970 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 5 Jul 2016 13:35:24 -0400 Subject: Setup the compton init system to use a special config file just for Lumina. This allows use to integrate an editor for that config file into lumina-config later. --- src-qt5/core/lumina-session/session.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src-qt5/core') diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp index 912eb4a7..7f9983dd 100644 --- a/src-qt5/core/lumina-session/session.cpp +++ b/src-qt5/core/lumina-session/session.cpp @@ -69,9 +69,25 @@ void LSession::start(){ // FLUXBOX BUG BYPASS: if the ~/.fluxbox dir does not exist, it will ignore the given config file //if(!QFile::exists(QDir::homePath()+"/.fluxbox")){ QDir dir; dir.mkpath(QDir::homePath()+"/.fluxbox"); } //startProcess("wm", "fluxbox -rc "+QDir::homePath()+"/.lumina/fluxbox-init -no-slit -no-toolbar"); + //Compositing manager - if(LUtils::isValidBinary("compton")){ startProcess("compositing","compton"); } - else if(LUtils::isValidBinary("xcompmgr")){ startProcess("compositing","xcompmgr"); } + 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