FROM : Kevin Bohan
DATE : Wed Jan 29 03:45:19 2003
I have written an application that contains a preference pane for
configuring settings and a daemon that communicates with a hardware device.
As part of the install, ie Apple Installer, I require authentication, but I
don't want to have to reboot. I have a shell script that can be run from the
command line to start my daemon, and I thought I could just have this run in
the ".post_install", or ".post_upgrade" script.
However, although running my script from the command-line always works when
I run it using sudo, the daemon doesn't seem to be launched in quite the
same way be the Apple Installer.
My daemon has occasion to present a CFUserNotification dialog from time to
time. When launched from the command line these notifications always appear.
However, when my daemon is started by the Apple Installer these
notifications never appear, and the daemon seems to stop running for no good
reason that I can see, other than the fact that it was launched by the
".post_install" script which is launched by the Apple Installer.
Sorry about the length of this mail, but it's all relevant.
I would really like to be able to start my daemon from the Installer, as
having to restart in this case sucks.
Does anyone know what context the Apple Installer uses to run the
".post_install" script, or why I am seeing this stange behavior?
Regards,
Kirby
_________________________________________________________________
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059
DATE : Wed Jan 29 03:45:19 2003
I have written an application that contains a preference pane for
configuring settings and a daemon that communicates with a hardware device.
As part of the install, ie Apple Installer, I require authentication, but I
don't want to have to reboot. I have a shell script that can be run from the
command line to start my daemon, and I thought I could just have this run in
the ".post_install", or ".post_upgrade" script.
However, although running my script from the command-line always works when
I run it using sudo, the daemon doesn't seem to be launched in quite the
same way be the Apple Installer.
My daemon has occasion to present a CFUserNotification dialog from time to
time. When launched from the command line these notifications always appear.
However, when my daemon is started by the Apple Installer these
notifications never appear, and the daemon seems to stop running for no good
reason that I can see, other than the fact that it was launched by the
".post_install" script which is launched by the Apple Installer.
Sorry about the length of this mail, but it's all relevant.
I would really like to be able to start my daemon from the Installer, as
having to restart in this case sucks.
Does anyone know what context the Apple Installer uses to run the
".post_install" script, or why I am seeing this stange behavior?
Regards,
Kirby
_________________________________________________________________
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

