feat: add user configuration cleanup functionality#108
Merged
18202781743 merged 1 commit intolinuxdeepin:masterfrom Jun 13, 2025
Merged
feat: add user configuration cleanup functionality#10818202781743 merged 1 commit intolinuxdeepin:masterfrom
18202781743 merged 1 commit intolinuxdeepin:masterfrom
Conversation
1. Added removeUserData method to clean up user-specific configs 2. Implemented configPrefixPath helper function in global header 3. Added getConnectionsByUid to find all connections for a user 4. Updated D-Bus interface definition with new method 5. Added detailed documentation in Chinese manual 6. Includes recursive directory removal for user cache files The changes enable proper cleanup of user configuration data when accounts are deleted, preventing stale configs from accumulating. The implementation handles both in-memory connections and on-disk cache files while maintaining security through D-Bus policy controls. feat: 添加用户配置清理功能 1. 添加removeUserData方法清理用户特定配置 2. 在全局头文件中实现configPrefixPath辅助函数 3. 添加getConnectionsByUid查找用户所有连接 4. 更新D-Bus接口定义添加新方法 5. 在中文手册中添加详细文档 6. 包含用户缓存文件的递归目录删除 这些变更使得在删除账户时能够正确清理用户配置数据,防止残留配置积累。实现 同时处理内存中的连接和磁盘上的缓存文件,并通过D-Bus策略控制保持安全性。
|
Warning
详情 {
"unset": {
"dconfig-center/tests/ut_dconfigserver.cpp": {
"b": [
" qunsetenv(\"STATE_DIRECTORY\");"
]
}
}
} |
mhduiy
approved these changes
Jun 11, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The changes enable proper cleanup of user configuration data when
accounts are deleted, preventing stale configs from accumulating. The
implementation handles both in-memory connections and on-disk cache
files while maintaining security through D-Bus policy controls.
feat: 添加用户配置清理功能
这些变更使得在删除账户时能够正确清理用户配置数据,防止残留配置积累。实现
同时处理内存中的连接和磁盘上的缓存文件,并通过D-Bus策略控制保持安全性。