aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-12-30 08:45:07 -0500
committerKen Moore <ken@pcbsd.org>2014-12-30 08:45:07 -0500
commit18d797031bdff03967d38d1f8b2ca847b3362af5 (patch)
treeb265f8adc6291f868292ca80975f0794a0734c96 /lumina-desktop/main.cpp
parentAdd a quick check to the FreeBSD screen brightness functions for not allowing... (diff)
downloadlumina-18d797031bdff03967d38d1f8b2ca847b3362af5.tar.gz
lumina-18d797031bdff03967d38d1f8b2ca847b3362af5.tar.bz2
lumina-18d797031bdff03967d38d1f8b2ca847b3362af5.zip
Commit some more XLib->XCB conversions (everything for the task manager), and fix a stray seg fault in the XCB window class detection routine.
Diffstat (limited to 'lumina-desktop/main.cpp')
-rw-r--r--lumina-desktop/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp
index 8305be60..091a1355 100644
--- a/lumina-desktop/main.cpp
+++ b/lumina-desktop/main.cpp
@@ -61,7 +61,8 @@ int main(int argc, char ** argv)
//LSession::setGraphicsSystem("native"); //make sure to use X11 graphics system
//Setup the log file
qDebug() << "Lumina Log File:" << logfile.fileName();
- if(logfile.exists()){ logfile.remove(); } //remove any old one
+ if(QFile::exists(logfile.fileName()+".old")){ QFile::remove(logfile.fileName()+".old"); }
+ if(logfile.exists()){ QFile::rename(logfile.fileName(), logfile.fileName()+".old"); }
//Make sure the parent directory exists
if(!QFile::exists(QDir::homePath()+"/.lumina/logs")){
QDir dir;
bgstack15