Questions tagged [launch-agent]
61 questions
2
votes
1 answer
How to create .plist file under /Library/LaunchAgents
I'm trying to develop a launch agent for macOS via Apple Doc
https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
One of my requirements is that the agent should work for all…

S Topkaya
- 51
- 3
2
votes
1 answer
fastlane: command not found when running from launchtl job
Hi I made an integration to create the builds of one IOS project using fastlane. Everything works as expected except the moment I try to launch a script to run the fastlane command on my Mac Computer using launchctl. When I run the job I get the…

Programmer Hugo
- 135
- 2
- 7
2
votes
0 answers
LaunchAgent Jenkins fail installing CocoaPods using plugin
I'm trying to set up a jenkins CI server to build some iOS and Android code.
I have it building some of my projects using the Xcode plugin and some shell scripts, mainly pod install.
From there, I tried to remove this shell script and use the…

Nerkatel
- 1,805
- 16
- 25
2
votes
0 answers
XPC service, launch as Launch Agent
i did create an XPC service, that runs in background and creates periodical tasks
placed it into path
/Users/Peter/Library/Application Support/AGENT TEST APPS/CS Agent.xpc
i can run it, by directly executing the file
i placed a .plist it into the…

Peter Lapisu
- 19,915
- 16
- 123
- 179
2
votes
1 answer
Configuring the mongod service: launch daemon or launch agent?
I'm installing MongoDB on OS X, using the 10gen builds.
But their installation tutorial proves to be a bit scarce for me.
So far I've found examples of mongod installed as a launch agent and as a launch daemon. Based on my understanding of launch…

Marius Butuc
- 17,781
- 22
- 77
- 111
2
votes
2 answers
OSX launchd: Reliable means of monitoring wired connection?
I don't want to watch /Library/Preferences/SystemConfiguration to handle [network] location changes b/c doing so results in my script getting run twice in a row for every change.
Watching…

Norma Stitz
- 89
- 10
1
vote
1 answer
LaunchAgent opening FileMaker script
I'm having a hell of a time getting cron-like scheduling of a FileMaker script using launchd on OS X 10.4.11. (I described my early travails over at serverfault.) At first I thought the problem was that the FileMaker script opens a GUI, which…

shanusmagnus
- 2,340
- 2
- 20
- 19
1
vote
0 answers
Background Session Type in Launchd Agent
I followed technote by apple to get an understanding of the various session types in Launchd Agent, but I am not able to understand the 'Background' Session Type.
Briefly:
Aqua: a GUI agent; has access to all the GUI services
LoginWindow:…

Vipul Gupta
- 239
- 5
1
vote
0 answers
Take dektop screenshot from macOS launch agent
I have the following script to take a screenshot programmatically
$ cat /Users/bamboo/capture/capture
#!/bin/bash
screencapture -o "$(dirname "$0")/screenshot.png"
When I run the script from a Terminal window for the first time, macOS asks me to…

hennes
- 9,147
- 4
- 43
- 63
1
vote
1 answer
cocoa - how to make a non-sandbox macOS app start at login?
I am developing a non-sandbox macOS app which is not going to be released in App Store, and I want to make the app to run when user log in.
The current method I have found is to use Service Management framework and a helper app, which needs to sign…

Evian
- 1,035
- 1
- 9
- 22
1
vote
1 answer
Launch agent via execution of command on the master options not found in jenkins Slave Setup
I was using Jenkins 1.7.4 version in RHEL Linux server. I can able to configure the slave using "launch agent via execution of command on the master" option during slave setup.
Now we have upgraded jenkins to 2.121.1 version. Now we unable to find…

user2439278
- 1,222
- 7
- 41
- 75
1
vote
1 answer
couldn't set DYLD_INSERT_LIBRARIES environment variable on Mac OS El Capiton
I am working on a project that requires wrapping libc calls particularly file i/o calls like open, read, write, close etc. I have created a shared library (say, wrapper.so) and preload this wrapper.so.
I could successful use this wrapper on Linux…

Damodar
- 21
- 4
1
vote
1 answer
launchd not recognizing manually started app
I'm trying to accomplish the following with my tray app:
MyApp.app should restart on crash
MyApp.app should not launch on user-login (ie user has to manually start the app)
I have a problem that if user manually starts the app, then listing…

mixtly87
- 1,675
- 15
- 32
1
vote
0 answers
Launch Agent Not Starting
I’m trying to make a launch agent that starts a Python script. It should run when there’s a network connection but it doesn’t do that. launchctl list says it’s loaded:
launchctl list | grep test.Flopsey.DiscordMusicBot
- 0 …

FlopseyFlow
- 13
- 1
- 5
1
vote
1 answer
Application do not start on system reboot
I have created a LaunchDaemon service which runs a application
sudo launchctl load /Library/LaunchDaemons/com.testapp.plist
Here is my com.testapp.plist:

Akshada-Systematix
- 321
- 3
- 17