Post

Replies

Boosts

Views

Activity

Reply to After app crashes launchctl is no longer able to start app
The standard solution is to mark the app as a UI element (via the [LSUIElementproperty][refLSUIElement]) but that prevents it from showing up in the Dock or having its own menu bar. I can still display a status bar item just fine. Any alt option in xcode so that we can still have the app icon appear in Dock , even if it is a status bar item, but prevent the Crash Report UI ? Please post the final launchd property list that you settled on. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <dict> <key>Crashed</key> <false/> <key>SuccessfulExit</key> <false/> </dict> <key>Label</key> <string>com.cirrusthinking.dollyappd</string> <key>LimitLoadToSessionType</key> <string>Aqua</string> <key>MachServices</key> <dict> <key>com.cirrusthinking.dollyappd</key> <true/> </dict> <key>ProgramArguments</key> <array> <string>open</string> <string>-W</string> <string>/Applications/DollyDrive.app</string> </array> </dict> </plist>
Mar ’22
Reply to After app crashes launchctl is no longer able to start app
The "app" is displayed in the Dock, its a GUI and a Status Bar item. We where able to resolve the issue by adding an extra key in the plist <key>MachServices</key> and <key>Crashed</key> <false/> Still, the man pages are not enough to decipher all different options available and there is not enough documentation on the Apple developers site to well define the xml logic according to various MacOS version need. ....
Mar ’22
Reply to Big Sur - LaunchAgents - Load error 5: input/output error
I have tried all of these on M1 with no success so far. After unloading the plist and running launchctl print we still see the labeled in a disabled format. Load and unload do not seem to work in Monterey M1 . The label is loaded but after a crash or force quit the app does not restart properly. All we get is the Problem Reporter ui reporting the crash and asking to reopen but launchctl does not restart the app
Mar ’22