Code Monkey home page Code Monkey logo

loginitemutil's Introduction

loginitemutil

This tool was written in 2012. Below is the mostly original README. Of note, this is written in Objective-C, but mostly uses CoreFoundation C APIs. It has been very stable, no changes were required to build this for Sonoma 14.5, and it worked in a quick smoke test. Including support for all users.

Original README

The application itself is just a little wrapper around a class that I wrote that wraps around the LSSharedFileList functions that we care about. The class should be fairly easy to use, and has features that system administrators would likely care about, as well as being a simple class to use for app developers who would just like to be able to add their own app to the login items.

Features include: -Setting for multiple users (requires root) -Setting for all users (requires root) -Making the login item Hidden (10.6+) -Checking to see if an item exists -Removing items -Listing all login items -Uses ARC and modern ObjC

The class is FFLoginItemController, and is usable in other programs, as long as you link against OpenDirectory.framework and CoreServices.framework.

There is support for "all users" on all OS's. Note that this support should be considered experimental at best. Until 10.7, there was no really good way to find a list of all users, except to make broad assumptions and guesses. Leopard support for this feature is very hacky, Snow Leopard is a lot better, and Lion makes it pretty legit. Note that there still are assumptions that one may want to tweak when using this in a production environment.

This project is provided mainly as an instructional tool, and as such, I cannot guarantee anything about this tool, even that it works. Please be warned you are using this at your own risk.

loginitemutil's People

Contributors

frankfle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.