Ideally we would use "#{ENV['HOME']}/Library/LaunchAgents" here. This should work fine, because elsewhere we use File.expand_path which will do the same thing, but that's a bit removed from this code and it took a minute to confirm we did so. If that was ever changed such that we were interpreting paths with a shell, not all shells expand tilde the same way.