Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cbsvitzer

macrumors newbie
Original poster
I have a problem with a program called eqMac.
It starts automatically with the OS, but doesn't work properly.
I have to close eqMac and start it again and then it works fine.

I have made a plist file that I put in ~/Library/LaunchAgents to close the app after startup
But how do I close the app and then restart it in the plist?
Here is the my plist that closes eqMac:

<?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>Label</key>
<string>pkill</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/pkill</string>
<string>eqMac</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
 
open -a eqMac should work. Might want to either make a script to wrap it all up or use sh -c '/usr/bin/pkill eqMac ; open -a eqMac' where the quoted part would be a single argument in the launch agent plist.
 
  • Like
Reactions: cbsvitzer
Yes but I first have to close eqMac and then open it again
How do I place both commands in the same plist?
When I try there is an error message!
 
Why don't you remove what is starting it in the first place, then try to create a new way of starting it?
I already have removed all autostart of eqMac
But because the program was running when I shut down the Mac, it starts when I turn on the Mac again
I could of cause close eqMac before shutdown, but I usually forget to do that
 
I already have removed all autostart of eqMac
That's why it's not working properly.
I've just installed it and it needs /Library/LaunchDaemons/com.bitgapp.eqmac.helper.plist to start /Library/PrivilegedHelperTools/com.bitgapp.eqmac.helper/Contents/MacOS/com.bitgapp.eqmac.helper
Make sure both exist and eqMac is enabled in System Settings - General - Login Items - Allow in the Background
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.