Skip to content

feat: add user configuration cleanup functionality#108

Merged
18202781743 merged 1 commit intolinuxdeepin:masterfrom
18202781743:test
Jun 13, 2025
Merged

feat: add user configuration cleanup functionality#108
18202781743 merged 1 commit intolinuxdeepin:masterfrom
18202781743:test

Conversation

@18202781743
Copy link
Contributor

  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策略控制保持安全性。

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策略控制保持安全性。
@18202781743 18202781743 requested review from BLumia and mhduiy June 10, 2025 13:46
@github-actions
Copy link

  • 检测到敏感词unset变动
详情
    {
    "unset": {
        "dconfig-center/tests/ut_dconfigserver.cpp": {
            "b": [
                "        qunsetenv(\"STATE_DIRECTORY\");"
            ]
        }
    }
}

@deepin-ci-robot
Copy link

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743 18202781743 merged commit 942e407 into linuxdeepin:master Jun 13, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants