Commit 6a97618
committed
fix: avoid error messages when service condition checks fail
Use ConditionEnvironment instead of ExecCondition for environment
variable checks. This prevents the service from being marked as failed
when the condition is not met.
Changes:
- Add ConditionEnvironment=DDE_QUICKLOGIN=true to [Unit] section
- Add ConditionEnvironment=XDG_SESSION_TYPE=%I to [Unit] section
- Remove ExecCondition shell script checks
- Apply the same fix to dde-version-checker@quick-login.service
This resolves the issue where systemd would report 'Failed to start'
error messages when the quick login conditions were not satisfied,
which could also trigger unwanted restart loops.
Log: avoid error messages when service condition checks fail
Pms: BUG-3499191 parent 1059b63 commit 6a97618
2 files changed
Lines changed: 7 additions & 3 deletions
File tree
- systemd/dde-session-pre.target.wants
- tools/dde-version-checker
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
0 commit comments