Skip to content

Commit

Permalink
feat: Set greeter background when setting wallpaper
Browse files Browse the repository at this point in the history
设置壁纸同时设置锁屏壁纸

Log: 设置壁纸同时设置锁屏壁纸
Bug: https://pms.uniontech.com/story-view-32367.html
Influence: SetWallpaper
  • Loading branch information
rb-union committed Mar 14, 2024
1 parent 0f21b9e commit ef8a836
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/album/controller/wallpapersetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,10 @@ bool WallpaperSetter::setBackground(const QString &pictureFilePath)
QDBusConnection::sessionBus().asyncCall(msg);
}

// Task 32367: 设置壁纸同步设置锁屏壁纸
QDBusMessage setGretterMsg = QDBusMessage::createMethodCall("com.deepin.daemon.Appearance", "/com/deepin/daemon/Appearance", "com.deepin.daemon.Appearance", "Set");
setGretterMsg.setArguments({"greeterbackground", tempWallPaperpath});
QDBusConnection::sessionBus().asyncCall(setGretterMsg);

return true;
}

0 comments on commit ef8a836

Please sign in to comment.