Skip to content

Commit

Permalink
bug #1842855
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanpeng committed Sep 24, 2019
1 parent 029bbc6 commit a96acc8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ukui-screensaver-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a96acc8

Please sign in to comment.