Skip to content

fix: enable rewrite-launchers user service on first install#9

Closed
mhduiy wants to merge 1 commit intodeepin-community:masterfrom
mhduiy:service
Closed

fix: enable rewrite-launchers user service on first install#9
mhduiy wants to merge 1 commit intodeepin-community:masterfrom
mhduiy:service

Conversation

@mhduiy
Copy link
Copy Markdown

@mhduiy mhduiy commented Jan 5, 2026

  1. Removed 'set -e' to prevent script from exiting on non-critical errors
  2. Added logic to enable xdg-desktop-portal-rewrite-launchers.service user service
  3. Service is only enabled on first installation if not already enabled
  4. Uses deb-systemd-helper for proper systemd integration
  5. Checks DPKG_ROOT to ensure it's not running in a chroot environment

Log: Enabled automatic activation of xdg-desktop-portal-rewrite- launchers service for Flatpak applications

Influence:

  1. Test Flatpak installation on fresh system to verify service gets enabled
  2. Verify service is not re-enabled on package upgrades
  3. Test in chroot environment to ensure service is not enabled
  4. Check service status after installation: systemctl --user status xdg- desktop-portal-rewrite-launchers.service
  5. Verify Flatpak applications can properly create desktop launchers
  6. Test on systems where the service was previously disabled manually

fix: 在首次安装时启用 rewrite-launchers 用户服务

  1. 移除了 'set -e' 以防止脚本在非关键错误时退出
  2. 添加了启用 xdg-desktop-portal-rewrite-launchers.service 用户服务的 逻辑
  3. 服务仅在首次安装且尚未启用时才会被启用
  4. 使用 deb-systemd-helper 进行正确的 systemd 集成
  5. 检查 DPKG_ROOT 以确保不在 chroot 环境中运行

Log: 为 Flatpak 应用程序启用了 xdg-desktop-portal-rewrite-launchers 服务 的自动激活

Influence:

  1. 在新系统上测试 Flatpak 安装,验证服务是否被启用
  2. 验证在软件包升级时服务不会被重新启用
  3. 在 chroot 环境中测试,确保服务不会被启用
  4. 安装后检查服务状态:systemctl --user status xdg-desktop-portal- rewrite-launchers.service
  5. 验证 Flatpak 应用程序能否正确创建桌面启动器
  6. 在之前手动禁用该服务的系统上测试

PMS: BUG-339551

1. Removed 'set -e' to prevent script from exiting on non-critical
errors
2. Added logic to enable xdg-desktop-portal-rewrite-launchers.service
user service
3. Service is only enabled on first installation if not already enabled
4. Uses deb-systemd-helper for proper systemd integration
5. Checks DPKG_ROOT to ensure it's not running in a chroot environment

Log: Enabled automatic activation of xdg-desktop-portal-rewrite-
launchers service for Flatpak applications

Influence:
1. Test Flatpak installation on fresh system to verify service gets
enabled
2. Verify service is not re-enabled on package upgrades
3. Test in chroot environment to ensure service is not enabled
4. Check service status after installation: systemctl --user status xdg-
desktop-portal-rewrite-launchers.service
5. Verify Flatpak applications can properly create desktop launchers
6. Test on systems where the service was previously disabled manually

fix: 在首次安装时启用 rewrite-launchers 用户服务

1. 移除了 'set -e' 以防止脚本在非关键错误时退出
2. 添加了启用 xdg-desktop-portal-rewrite-launchers.service 用户服务的
逻辑
3. 服务仅在首次安装且尚未启用时才会被启用
4. 使用 deb-systemd-helper 进行正确的 systemd 集成
5. 检查 DPKG_ROOT 以确保不在 chroot 环境中运行

Log: 为 Flatpak 应用程序启用了 xdg-desktop-portal-rewrite-launchers 服务
的自动激活

Influence:
1. 在新系统上测试 Flatpak 安装,验证服务是否被启用
2. 验证在软件包升级时服务不会被重新启用
3. 在 chroot 环境中测试,确保服务不会被启用
4. 安装后检查服务状态:systemctl --user status xdg-desktop-portal-
rewrite-launchers.service
5. 验证 Flatpak 应用程序能否正确创建桌面启动器
6. 在之前手动禁用该服务的系统上测试

PMS: BUG-339551
@deepin-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tsic404 for approval. For more information see the Code Review Process.

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

@mhduiy mhduiy closed this Jan 14, 2026
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.

2 participants