Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling start at login with App Sandbox enabled

I have an application that must be sandboxed.

It's not a difficult task, but I see that I cannot enable automatic start at login with LSSharedFileList editing the Session Login Items list.

Is there another way to enable start at login with App Sandbox enabled?

like image 536
DreamOfMirrors Avatar asked Oct 20 '11 14:10

DreamOfMirrors


People also ask

What does it mean when an app is sandboxed?

Android sandboxThe Android platform isolates apps from each other and protects them -- and the overall system -- from malicious apps and intruders. Android assigns a unique user ID (UID) to each application to create a kernel-level sandbox. This kernel ensures security between apps and the system at the process level.


2 Answers

An updated project/tutorial is available here, with addendums for some misleading Console messages you'll see under 10.8.2:

http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/

I'm not the author, but the tutorial was very helpful in getting a start-at-login app configured under 10.8.2 w/ Sandboxing enabled.

like image 197
Craig Otis Avatar answered Oct 10 '22 02:10

Craig Otis


Apple says:

Creating a Login Item for Your App To create a login item for your sandboxed app, use the SMLoginItemSetEnabled function (declared in ServiceManagement/SMLoginItem.h) as described in “Adding Login Items Using the Service Management Framework” in Daemons and Services Programming Guide.

(With App Sandbox, you cannot create a login item using functions in the LSSharedFileList.h header file. For example, you cannot use the function LSSharedFileListInsertItemURL. Nor can you manipulate the state of launch services, such as by using the function LSRegisterURL.)

like image 36
pkamb Avatar answered Oct 10 '22 01:10

pkamb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!