feat: add dbus-activatable desktop entry for dde-shell#1600
Conversation
There was a problem hiding this comment.
Sorry @18202781743, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 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 |
| Type=Application | ||
| Name=Deepin Desktop Shell | ||
| Comment=Deepin desktop shell service | ||
| Icon=dde-shell |
There was a problem hiding this comment.
这个想着放在主题里,dde-shell内置一个基础的,现在设计的图标还没出,
1. Add a new desktop entry file org.deepin.dde-shell.desktop in the misc directory 2. Configure the entry as a DBusActivatable application with Exec and TryExec set to /bin/false 3. Set NoDisplay to true to hide from menus and launchers 4. Categorize it under System for organization purposes 5. This enables the DDE shell service to be started on demand via D- Bus activation Log: Added D-Bus activation support for DDE Shell service Influence: 1. Verify that dde-shell can be activated via D-Bus when needed 2. Test that the entry does not appear in application menus or launchers 3. Confirm that the service starts on demand and stops when no longer needed feat: 为 dde-shell 添加 D-Bus 激活的 desktop 条目 1. 在 misc 目录中添加新的 desktop 文件 org.deepin.dde-shell.desktop 2. 配置该条目为 DBusActivatable 应用,Exec 和 TryExec 设置为 /bin/false 3. 设置 NoDisplay 为 true 以隐藏于菜单和启动器中 4. 归类到 System 类别以便于组织管理 5. 这使得 DDE shell 服务可以通过 D-Bus 激活按需启动 Log: 新增 DDE Shell 服务的 D-Bus 激活支持 Influence: 1. 验证 dde-shell 能否在需要时通过 D-Bus 激活 2. 测试该条目不会出现在应用菜单或启动器中 3. 确认服务按需启动并在不需要时自动停止
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的 Git Diff。本次修改主要为 以下是我对本次代码变更在语法逻辑、代码质量、代码性能和代码安全方面的审查意见及改进建议: 1. 语法与逻辑
2. 代码质量
3. 代码性能
4. 代码安全
综合修改建议代码基于以上分析,我建议对 1. 修改后的 [Desktop Entry]
Type=Application
Name=Deepin Desktop Shell
Comment=Deepin desktop shell service
Icon=dde-shell
Exec=
TryExec=
DBusActivatable=true
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;2. 修改后的 3. 修改后的版权声明(以 main.cpp 为例): // SPDX-FileCopyrightText: 2023 - 2024 UnionTech Software Technology Co., Ltd.总体而言,这是一个结构清晰、目的明确的 PR,主要逻辑没有问题,只需在细节规范上稍加完善即可。希望这些意见对你有所帮助! |
|
TAG Bot New tag: 2.0.42 |
misc directory
TryExec set to /bin/false
Bus activation
Log: Added D-Bus activation support for DDE Shell service
Influence:
needed
feat: 为 dde-shell 添加 D-Bus 激活的 desktop 条目
Log: 新增 DDE Shell 服务的 D-Bus 激活支持
Influence: