fix: prefix desktop filename with linyaps in uninstall cleanup#53
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideEnhance postUninstallCleanUp to detect and remove desktop shortcut files prefixed with "linyaps-" in addition to the original filename, ensuring correct cleanup. Class diagram for updated postUninstallCleanUp logicclassDiagram
class postUninstallCleanUp {
+void postUninstallCleanUp(QString desktopId)
// Now checks and removes both <desktopId> and linyaps-<desktopId> files
}
class QFile {
+bool exists()
+bool remove()
}
class QStandardPaths {
+QString writableLocation(enum locationType)
}
postUninstallCleanUp --> QFile
postUninstallCleanUp --> QStandardPaths
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
BLumia
left a comment
There was a problem hiding this comment.
按我理解这个应该让玲珑来改,他们不该加那个前缀,这个前缀和 app id / desktop id 是不一致的。
一定要按这个临时方案的话,下面是此 PR 的修改建议:
Changed the postUninstallCleanUp parameter to prefix the desktop filename with "linyaps-" This ensures proper cleanup when uninstalling applications by matching the expected format The previous implementation used just the filename which could cause cleanup issues fix: 在卸载清理中为桌面文件名添加 linyaps 前缀 修改 postUninstallCleanUp 参数,为桌面文件名添加 "linyaps-" 前缀 这确保了在卸载应用程序时能够正确清理,匹配预期的格式 之前的实现仅使用文件名,可能导致清理问题 Pms: BUG-317501
60662e0 to
c882e9f
Compare
deepin pr auto review代码审查意见总体评价这个代码补丁主要是对 具体分析1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
改进建议
总结代码整体质量良好,功能明确,但在安全性、代码复用和错误处理方面还有提升空间。建议优先处理路径安全问题和修复 FIXME 注释,然后考虑提取公共逻辑以提高代码质量。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, wjyrich 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 |
Changed the postUninstallCleanUp parameter to prefix the desktop filename with "linyaps-"
This ensures proper cleanup when uninstalling applications by matching the expected format
The previous implementation used just the filename which could cause cleanup issues
fix: 在卸载清理中为桌面文件名添加 linyaps 前缀
修改 postUninstallCleanUp 参数,为桌面文件名添加 "linyaps-" 前缀
这确保了在卸载应用程序时能够正确清理,匹配预期的格式
之前的实现仅使用文件名,可能导致清理问题
Pms: BUG-317501
Summary by Sourcery
Bug Fixes: