FROM : stephen joseph butler
DATE : Wed Apr 23 19:04:19 2008
On Wed, Apr 23, 2008 at 11:42 AM, Dave Camp <<email_removed>> wrote:
> Unless I'm reading the OP wrong, he's writing a privileged helper tool,
> not a daemon. Given that, I don't think the above documents are applicable.
None of what I know is official, but just gathered and extrapolated from
years of reading information about this. So I might be wrong... who knows.
The unsafe frameworks make connections to the default window server. As a
program launched from Finder/Dock/et al, this will always work as expected.
Launched from ssh or root, there are some caveats.
For ssh, they will work fine as long as the same user is logged onto the
GUI. As soon as the user logs out, your program loses its connection and
might crash.
For root, they will work as long as the "console user" stays the same. If
someone uses fast user switching, or logs out, then the program's connection
changes and it might crash.
In any event, none of the unsafe frameworks are documented as working in any
conditions other than the normal ones. People may get them to work 90% of
the time under other conditions, but that's unsupported and may change.
So unless DTS tells you otherwise, I'd stay away. But that's me... maybe 90%
is good enough for you.
DATE : Wed Apr 23 19:04:19 2008
On Wed, Apr 23, 2008 at 11:42 AM, Dave Camp <<email_removed>> wrote:
> Unless I'm reading the OP wrong, he's writing a privileged helper tool,
> not a daemon. Given that, I don't think the above documents are applicable.
None of what I know is official, but just gathered and extrapolated from
years of reading information about this. So I might be wrong... who knows.
The unsafe frameworks make connections to the default window server. As a
program launched from Finder/Dock/et al, this will always work as expected.
Launched from ssh or root, there are some caveats.
For ssh, they will work fine as long as the same user is logged onto the
GUI. As soon as the user logs out, your program loses its connection and
might crash.
For root, they will work as long as the "console user" stays the same. If
someone uses fast user switching, or logs out, then the program's connection
changes and it might crash.
In any event, none of the unsafe frameworks are documented as working in any
conditions other than the normal ones. People may get them to work 90% of
the time under other conditions, but that's unsupported and may change.
So unless DTS tells you otherwise, I'd stay away. But that's me... maybe 90%
is good enough for you.
| Related mails | Author | Date |
|---|---|---|
| Michael Watson | Apr 23, 05:52 | |
| stephen joseph but… | Apr 23, 06:17 | |
| Michael Watson | Apr 23, 08:18 | |
| Kevin Grant | Apr 23, 08:42 | |
| Michael Watson | Apr 23, 08:44 | |
| Ken Thomases | Apr 23, 09:27 | |
| stephen joseph but… | Apr 23, 19:04 | |
| Michael Watson | Apr 23, 20:35 | |
| Chris Suter | Apr 24, 00:15 |






Cocoa mail archive

