fix: 修复设置开机自启动应用重启后失效问题
1. 修复获取自启动列表为空的问题 2. 修复重启后自启动应用没有启动问题 Log: Influence: 设置自启动后重启应用也会保持生效 Bug: https://pms.uniontech.com/bug-view-172263.html Change-Id: Id95f4248fe2d29b3a6d03e9b44bee54671e9c5f6
This commit is contained in:
@ -217,8 +217,10 @@ bool KeyFile::loadFile(const std::string &filePath)
|
||||
|
||||
std::string lastSection;
|
||||
m_fp = fopen(filePath.data(), "r");
|
||||
if (!m_fp)
|
||||
if (!m_fp) {
|
||||
perror("open file failed: ");
|
||||
return false;
|
||||
}
|
||||
|
||||
char line[MAX_LINE_LEN] = {0};
|
||||
while (fgets(line, MAX_LINE_LEN, m_fp)) {
|
||||
|
Reference in New Issue
Block a user