Created
July 15, 2015 20:33
-
-
Save natan/e60eae1e2c6e4f909b81 to your computer and use it in GitHub Desktop.
Display the Login Items for your account registered via launchd by ServiceManagement.framework (vs. System Preferences' own Login Items)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
user_id = `id -u`.chomp | |
secret_login_items_path = "/var/db/com.apple.xpc.launchd/loginitems.#{user_id}.plist" | |
puts File.read(secret_login_items_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment