Skip to content

Commit

Permalink
launchd: ensure user LaunchAgents exist
Browse files Browse the repository at this point in the history
Apparently this doesn't exist by default, so make sure it's created
first.

Fixes NixOS#134
  • Loading branch information
LnL7 committed Mar 22, 2019
1 parent 13f2480 commit b68f77b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/system/launchd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b68f77b

Please sign in to comment.