From e10e300e5499ea7a6ef635a921d9949470880148 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 6 Sep 2018 16:31:02 -0400 Subject: Ensure that the Fluxbox background/wallpaper setter is disabled before Lumina starts it up --- src-qt5/core/lumina-session/session.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src-qt5/core') diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp index 7ecebdcc..0988e7ea 100644 --- a/src-qt5/core/lumina-session/session.cpp +++ b/src-qt5/core/lumina-session/session.cpp @@ -169,6 +169,14 @@ void LSession::start(bool unified){ LUtils::writeFile(confDir+"/fluxbox-keys", keys, true); QFile::setPermissions(confDir+"/fluxbox-keys", QFile::ReadOwner | QFile::WriteOwner | QFile::ReadUser | QFile::ReadOther | QFile::ReadGroup); } + if(!QFile::exists(confDir+"/fluxbox-overlay")){ + QStringList contents; contents << "background: unset"; + LUtils::writeFile(confDir+"/fluxbox-overlay", contents, true); + //Now make sure this overlay file is set within the init file + contents = LUtils::readFile(confDir+"/fluxbox-init"); + contents << "session.styleOverlay: "+confDir+"/fluxbox-overlay"; + LUtils::writeFile(confDir+"/fluxbox-init", contents, true); + } // 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"); -- cgit