Problem starting OS X version

Mike Alexander mta at umich.edu
Fri Jan 1 21:02:31 EST 2010


--On January 1, 2010 8:21:44 AM -0800 John Ralls <jralls at ceridwen.us> 
wrote:

> The dbus daemon stays running because there's no way to return to the
> shell script and kill it when Gnucash exits. Finding a running dbus's
> pid won't help because gnucash needs the session id to connect to,
> and it isn't saved anywhere -- though I suppose the launcher script
> might be able to get around that.

That's a problem that launchd is meant to solve.  It should be possible 
for the first run script to create a launchd plist that controlled the 
startup of the dbus daemon and then let launchd handle the rest, more 
or less like MacPorts handles the problem.  To be completely correct 
you would also have to catch the first attempt to run GnuCash by a user 
other than the one that installed it and do the appropriate launchctl 
command for that user too.  The dbus daemon would keep running, but 
subsequent runs of GnuCash would connect to it and not start a new one.

     Mike



More information about the gnucash-user mailing list