Re: Launching a Cocoa app from KEXT?
Re: Launching a Cocoa app from KEXT?
- Subject: Re: Launching a Cocoa app from KEXT?
- From: Allan Hoeltje <email@hidden>
- Date: Mon, 18 Jul 2005 12:46:47 -0700
Justin,
I guess I don't understand your aversion to having a KEXT do this. For
example, when I plug a digital camera into the usb port the Mac OS will
automatically launch iPhoto. Granted, maybe that particular event does not
involve a KEXT but you get the idea? In a similar way, when my KEXT detects
a particular situation (by way of examining IP packets flowing in or out) I
want the KEXT to launch an application to let the user deal with the
situation.
The case I have in mind (I do not wish to reveal too much on-list but if you
email me off-list I can say more) is that the user will not be logged in
remotely and the IP packets that trigger the application will always be
associated with an activity caused by that user. And the user will be glad
to see the app come up. :-)
-Allan
"Justin C. Walker" <email@hidden> wrote on 7/18/05 12:04 PM:
>
> On Jul 18, 2005, at 11:34 , Allan Hoeltje wrote:
>
>> Is it possible for a KEXT to launch a Cocoa application? What I
>> want is for
>> my KEXT to determine which user is logged-in and then open the app
>> in that
>> user's space as if the user double clicked the app.
>
> That's mixing metaphors in a really bad way. You (the Editorial You)
> don't want an extension to have any clue about identities of users,
> or even about users. The only reason your extension should deal with
> UIDs is for security issues.
>
> Kernel operations should be performed to facilitate some user-level
> activity, and then only if there is no other way. Think of the
> kernel as a programming interface to the hardware, not as an
> environment in which to build fancy applications.
>
> One thing to consider is how you would tell that the user has logged
> in in such a way that he can stand having a Cocoa app launched. He
> might be remote, or he might be running X windows only.
>
> There's got to be a better way to get what you want.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden