refact: remove unnecessary open operation
fix AM can't access some dirs due to systemd 254's sandboxing option: PrivateUser is true by default. Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -270,7 +270,7 @@ void ApplicationManager1Service::updateApplication(const QSharedPointer<Applicat
|
||||
return;
|
||||
}
|
||||
|
||||
auto mtime = getFileTimeInfo(desktopFile.sourceFileRef());
|
||||
auto mtime = getFileTimeInfo(QFileInfo{desktopFile.sourceFileRef()});
|
||||
|
||||
if (destApp->desktopFileSource().modified(std::get<1>(mtime))) {
|
||||
auto *newEntry = new (std::nothrow) DesktopEntry{};
|
||||
|
Reference in New Issue
Block a user