Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Library/LaunchDaemons ignored #30

Open
engineer-plus-plus opened this issue Jan 17, 2024 · 1 comment
Open

/Library/LaunchDaemons ignored #30

engineer-plus-plus opened this issue Jan 17, 2024 · 1 comment

Comments

@engineer-plus-plus
Copy link

It appears that KnockKnock straight up ignores the things in ~/Library/LaunchDaemons, ~/Library/LauchAgents and the like. And that's the first place that gets poluted with startup items. Why doesn't KnockKnock report on stuff there?

@objective-see
Copy link
Owner

Can you provide more information?
...as this definitely should not be the case!

  1. The code here, in the shared item enumerator should take care of those directories:
NSString * const LAUNCHITEM_SEARCH_DIRECTORIES[] = {@"/System/Library/LaunchDaemons/", @"/Library/LaunchDaemons/", @"/System/Library/LaunchAgents/", @"/Library/LaunchAgents/", @"~/Library/LaunchAgents/"};
...

(Note, AFAIK, there is no ~/Library/LaunchDaemons ...as daemons run as root, and thus are found in /System/Library/LaunchDaemons or /Library/LaunchDaemons/)

  1. On macOS 13+ such items are also enumerated via the "Background Task Management" plugin.

If you are seeing specific items being missed please let me know, and I'll look into that ASAP :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants