Skip to content

Commit f138d70

Browse files
committed
Fix start-on-activation module
`path` may have whitespace or other characters that need escaping
1 parent bbf7a73 commit f138d70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/darwin/start-on-activation.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}:
66
with lib; let
77
cfg = config.system.startOnActivation;
8-
openIfNotRunning = proc: path: "pgrep -q ${proc} || open ${path}";
8+
openIfNotRunning = proc: path: "pgrep -q ${proc} || open ${escapeShellArg path}";
99
in {
1010
options.system.startOnActivation = mkOption {
1111
type = types.attrsOf types.str;

0 commit comments

Comments
 (0)