Skip to content

Instantly share code, notes, and snippets.

@natan
Created July 15, 2015 20:33
Show Gist options
  • Save natan/e60eae1e2c6e4f909b81 to your computer and use it in GitHub Desktop.
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)
#!/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