From 61de5a55ee446430399a4ccac6aa89ce96c78679 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Thu, 3 Jul 2025 13:28:29 +0800 Subject: [PATCH 1/2] Revert "chore: prohibit the startup and auto start of some services" This reverts commit e7a98028777bbbb579e92d4a12744f6f648241c1. --- debian/rules | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/debian/rules b/debian/rules index 70e5393..ad14081 100755 --- a/debian/rules +++ b/debian/rules @@ -20,11 +20,4 @@ override_dh_strip: dh_strip --dbgsym-migration=dde-api-dbg override_dh_installsystemd: - # 需要开机启动 - dh_installsystemd --name=deepin-login-sound --no-start - dh_installsystemd --name=deepin-shutdown-sound --no-start - - # 不需要开机启动 - dh_installsystemd --name=deepin-api-device --no-enable --no-start - dh_installsystemd --name=deepin-locale-helper --no-enable --no-start - dh_installsystemd --name=deepin-sound-theme-player --no-enable --no-start + dh_installsystemd --no-start From fef8feaaf11135586aa337f0226ed56005300ebc Mon Sep 17 00:00:00 2001 From: zhangkun Date: Thu, 3 Jul 2025 14:08:24 +0800 Subject: [PATCH 2/2] fix: remove Install sections from systemd sound services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Removed [Install] sections from both deepin-login-sound.service and deepin-shutdown-sound.service 2. These services are meant to be triggered manually rather than being enabled/started at boot 3. The WantedBy directives were unnecessary since these are one-shot services 4. Improves system startup performance by not loading unnecessary services fix: 从 systemd 声音服务中移除 Install 部分 1. 从 deepin-login-sound.service 和 deepin-shutdown-sound.service 中移除 了 [Install] 部分 2. 这些服务设计为手动触发而非在启动时自动启用/运行 3. WantedBy 指令对于一次性服务来说是不必要的 4. 通过不加载不必要的服务来提高系统启动性能 --- misc/systemd/system/deepin-login-sound.service | 3 --- misc/systemd/system/deepin-shutdown-sound.service | 3 --- 2 files changed, 6 deletions(-) diff --git a/misc/systemd/system/deepin-login-sound.service b/misc/systemd/system/deepin-login-sound.service index d27813c..ffd8d53 100644 --- a/misc/systemd/system/deepin-login-sound.service +++ b/misc/systemd/system/deepin-login-sound.service @@ -28,6 +28,3 @@ LockPersonality=yes RestrictRealtime=yes RestrictSUIDSGID=yes RemoveIPC=yes - -[Install] -WantedBy=multi-user.target diff --git a/misc/systemd/system/deepin-shutdown-sound.service b/misc/systemd/system/deepin-shutdown-sound.service index 3031a20..2e33d36 100644 --- a/misc/systemd/system/deepin-shutdown-sound.service +++ b/misc/systemd/system/deepin-shutdown-sound.service @@ -36,6 +36,3 @@ LockPersonality=yes RestrictRealtime=yes RestrictSUIDSGID=yes RemoveIPC=yes - -[Install] -WantedBy=graphical.target