launchd - fixed validation check (#2960)

* replaced use of expanduser() with value from HOME var

* fixed sanity check

* added changelog fragment
This commit is contained in:
Alexei Znamensky 2021-07-10 23:03:41 +12:00 committed by GitHub
parent ad8c4e4de6
commit 1990f79d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 5 deletions

View file

@ -159,7 +159,7 @@ class Plist:
"""Finds the plist file associated with a service"""
launchd_paths = [
os.path.expanduser('~/Library/LaunchAgents'),
os.path.join(os.getenv('HOME'), 'Library/LaunchAgents'),
'/Library/LaunchAgents',
'/Library/LaunchDaemons',
'/System/Library/LaunchAgents',