chore: 修复AM初次启动占用大量内存的问题
修复AM初次启动占用大量内存的问题 Log: Task: https://pms.uniontech.com/task-view-144887.html Influence: 正常启动 Change-Id: I6f76ee7101dd846d55f37cec949b9201bc331cd0
This commit is contained in:
@ -33,6 +33,7 @@ AppManager::AppManager(QObject *parent)
|
||||
, watcher(new DFWatcher(this))
|
||||
, recorder(new AlRecorder(watcher, this))
|
||||
{
|
||||
qInfo() << "AppManager";
|
||||
new DBusAdaptorRecorder(recorder);
|
||||
QDBusConnection con = QDBusConnection::sessionBus();
|
||||
if (!con.registerService("org.deepin.daemon.AlRecorder1"))
|
||||
@ -53,6 +54,7 @@ AppManager::AppManager(QObject *parent)
|
||||
for (auto &dir : BaseDir::sysAppDirs())
|
||||
dataDirs << dir.c_str();
|
||||
|
||||
qInfo() << "get dataDirs: " << dataDirs;
|
||||
recorder->watchDirs(dataDirs); // 监控应用desktop
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user