From c0452c6c8084492e55019b825f84ec6352d23f8d Mon Sep 17 00:00:00 2001 From: Anntoin Date: Mon, 4 May 2026 15:30:03 +0100 Subject: [PATCH] Update service dependency from Requisite to Wants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes the dependency on graphical-session.target weaker. So the service will still start if the session is otherwise degraded. Error logs before this change: ``` 1369 May 04 14:36:43 hostname systemd[913]: Current graphical user session is inactive. 1370 May 04 14:36:43 hostname systemd[913]: Dependency failed for Synchronize clipboards across all displays. 1371 ░░ Subject: A start job for unit UNIT has failed 1372 ░░ Defined-By: systemd 1373 ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel 1374 ░░ 1375 ░░ A start job for unit UNIT has finished with a failure. 1376 ░░ 1377 ░░ The job identifier is 275 and the job result is dependency. 1378 May 04 14:36:43 hostname systemd[913]: clipboard-sync.service: Job clipboard-sync.service/start failed with result 'dependency'. ``` --- clipboard-sync.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipboard-sync.service b/clipboard-sync.service index 45040da..6046321 100644 --- a/clipboard-sync.service +++ b/clipboard-sync.service @@ -3,7 +3,7 @@ Description=Synchronize clipboards across all displays Documentation=https://github.com/dnut/clipboard-sync/ PartOf=graphical-session.target After=graphical-session.target -Requisite=graphical-session.target +Wants=graphical-session.target [Service] ExecStart=/usr/bin/env clipboard-sync --hide-timestamp --log-level debug