1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

launchd: ensure user LaunchAgents exist

Apparently this doesn't exist by default, so make sure it's created
first.

Fixes #134
This commit is contained in:
Daiderd Jordan 2019-03-22 20:30:06 +01:00
parent 13f2480374
commit b68f77b404
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -128,6 +128,9 @@ in
${concatStringsSep "\n" (launchdVariables config.launchd.user.envVariables)}
${optionalString (builtins.length userLaunchAgents > 0) ''
mkdir -p ~/Library/LaunchAgents
''}
${concatMapStringsSep "\n" (attr: userLaunchdActivation attr.target) userLaunchAgents}
for f in $(ls /run/current-system/user/Library/LaunchAgents 2> /dev/null); do