Giter Site home page Giter Site logo

loginitems's Introduction

loginitems

loginitems is a simple command line tool to manage applications that launch on startup on OS X. While previously possible with launchctl this is deprecated as of some time before or with 10.11.

Installation

I'm a big brew fan - so while this repo isn't popular enough to be included in official formulae, if you share my preference then you can run the formula from my fork here:

brew tap OJFord/formulae
brew install loginitems

Otherwise, you'll need to clone/download the repo to somewhere on your path, and chmod +x each of the included scripts.

Usage

Usage: loginitems [-h | -a NAME [-p PATH] [-s HIDE?] | -d NAME | -l]
  -h Show this help message.
  -a Add an application, optionally hide with -s false.
  -p Path to application; defaults to /Applications/NAME.app.
  -s Show/hide application; defaults to true (no hide).
  -d Delete an application from login items.
  -l List all login items (default if no option specified).

For example:

% loginitems -a Caffeine 
% loginitems -l
Caffeine
% loginitems -d Caffeine
% loginitems -l
% loginitems -a "Custom Name" -p "/Applications/Caffeine.app"
% loginitems -a "App" -p "/that/I/decided/to/store/elsewhere/because/yolo.not-app"
% loginitems -l
Custom Name, App
%

Todo

  • While the Applescript use may well work (untested) on earlier versions, I hope to check OS X version and use launchctl submit on older versions, or defaults write on ancient ones

loginitems's People

Contributors

ojford avatar robert-muil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

loginitems's Issues

`loginitems` Unusable Over `su` Session

When I ran loginitems -l under su -l $OTHER_REDACTED_USER, I got the following error from osascript:

/usr/local/bin/loginitems-ls:68:72: execution error: An error of type -10810 has occurred. (-10810)

I suspect that this probably has to do with the fact that su does something funny and creates an execution environment that loginitems wasn't expecting. I don't recognize and couldn't find any documentation on that particular error code, though, so good luck if you decide to chase down the root cause of this problem. In the meantime, I'll just switch users to use loginitems under other accounts.

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.