idle: spawn screensaver/lock via bash -c so children inherit session PATH
swadhinbiswas committed 2 months ago
4b711d1
1 parent 5bf7303
commit 4b711d1
1 file changed
+6 -1
Showing 1 changed file+6-1
▼shell/plugins/services/idle/Service.qml
+6-1
| @@ -57,7 +57,12 @@ Item { | ||
57 | 57 | return false |
58 | 58 | } |
59 | 59 | logEvent("process-start", label + " " + command) |
60 | - process.command = ["bash", "-lc", command] | |
60 | + // Plain -c, NOT -l: inherit this session's environment rather than | |
61 | + // re-deriving PATH through bash login profiles. The parent quickshell | |
62 | + // already carries the uwsm PATH (with $OMARCHY_PATH/bin); a login shell | |
63 | + // would silently drop it on machines whose bash profile doesn't add it, | |
64 | + // and every omarchy-* spawn would fail with "not found". | |
65 | + process.command = ["bash", "-c", command] | |
61 | 66 | process.running = true |
62 | 67 | return true |
63 | 68 | } |
64 | 69 | |