mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
launchd: fix for user-level services (#899)
* launchd: fix for user-level services * fix changelog fragment number
This commit is contained in:
parent
9d5044ac1a
commit
2794dc7b02
2 changed files with 4 additions and 2 deletions
|
@ -154,7 +154,7 @@ class Plist:
|
|||
"""Finds the plist file associated with a service"""
|
||||
|
||||
launchd_paths = [
|
||||
'~/Library/LaunchAgents',
|
||||
os.path.expanduser('~/Library/LaunchAgents'),
|
||||
'/Library/LaunchAgents',
|
||||
'/Library/LaunchDaemons',
|
||||
'/System/Library/LaunchAgents',
|
||||
|
@ -163,7 +163,7 @@ class Plist:
|
|||
|
||||
for path in launchd_paths:
|
||||
try:
|
||||
files = os.listdir(os.path.expanduser(path))
|
||||
files = os.listdir(path)
|
||||
except OSError:
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue