Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the OS X session types, and what do they mean?

I've been trying to find out the meaning of LimitLoadToSessionType in launchctl on OS X (Lion).

After scouring the internet, it seems the value can be one of: Aqua, LoginWindow, Background, StandardIO and System.

Are there any missing, and more importantly, does anyone know what effect they have?

like image 738
user756079 Avatar asked Mar 06 '12 00:03

user756079


People also ask

What Mac OS X means?

OS X is version 10 of the Apple MacIntosh operating system . OS X was described by Apple as its first "complete revision" of the OS since the previous version is OS 9, with a focus on modularity so that future changes would be easier to incorporate.

What is Mac operating system called?

macOS (/ˌmækoʊˈɛs/; previously Mac OS X and later OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers.

Why is macOS the best operating system?

Mac computers and MacOS are for users who want a premium, fine-tuned, maintenance-free desktop experience. Apple's top-to-bottom philosophy makes its software relatively accessible to newcomers. It's also a great pick for people who are dedicated to Apple's mobile products.

Where do I find bash on Mac?

Hold the Ctrl key, click your user account's name in the left pane, and select “Advanced Options.” Click the “Login Shell” dropdown box and select “/bin/bash” to use Bash as your default shell or “/bin/zsh” to use Zsh as your default shell.


1 Answers

This Apple Technical Note explains most of the session types (it doesn't cover System; I think Tech Note was last updated for Snow Leopard and System was probably added for Lion):

Briefly:

  • Aqua: a GUI agent; has access to all the GUI services
  • LoginWindow: pre-login agent; runs in the login window context
  • Background: runs in the parent context of the user
  • StandardIO: runs only in non-GUI login session (e.g. SSH sessions)

I could guess about System, but then so could you. I wish Apple would update the TN2083 for OS X 10.7.

like image 159
Dave Hein Avatar answered Nov 15 '22 22:11

Dave Hein