aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/main.cpp
diff options
context:
space:
mode:
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