diff --git a/src/ukui-screensaver-dialog.cpp b/src/ukui-screensaver-dialog.cpp index f29b044..6554bee 100644 --- a/src/ukui-screensaver-dialog.cpp +++ b/src/ukui-screensaver-dialog.cpp @@ -56,6 +56,18 @@ void checkIslivecd() } } pclose(fp); + + QString filepath = QDir::homePath() + "/Desktop" + "/ubiquity.desktop"; + QString folderpath = "/cdrom"; + QFileInfo file(filepath); + QFileInfo folder(folderpath); + if(!file.exists()) + return; + if(!folder.exists()) + return; + if(getuid() != 999) + return; + exit(0); } void checkIsRunning()