On Saturday, January 10, 2004, at 10:21 AM, Matt Jaffa wrote: Hi, Using the Proc structure, is there a way to get the information of the app's name, including the directory it is in? Like /Applications/TextEdit.app/contents/MacOS/TextEdit ? No. The proc structure contains a (possibly shortened) command name, but not the directory path. It also contains a pointer to the vnode for the executable. You could use that to work backwards to get "a" path to the executable. There really is no way to know what path was used (because of links, symbolic or hard). What are you trying to do? Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Some people have a mental | horizon of radius zero, and | call it their point of view. | -- David Hilbert *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Justin Walker