Re: Problems running UNIX Apps in Cocoa GUI
Re: Problems running UNIX Apps in Cocoa GUI
- Subject: Re: Problems running UNIX Apps in Cocoa GUI
- From: Alberto <email@hidden>
- Date: Mon, 25 Mar 2002 13:26:17 -0300
On 25.03.2002 07:41, "Ondra Cada" <email@hidden> wrote:
>
Actually it is happening, very far as possible. Where have you the cwd
>
when a GUI app is launched via Dock or Finder, though? OTOH, if the app is
>
launched from CLI, the cwd is set properly (to the cwd of the launching
>
shell, of course).
>
>
that's lie. The application knows where it really is, just the very same
>
way as a tool knows that. The only problem is that
>
- Finder or Dock set cwd to root, which is the most meaningful way
>
possible;
>
- you are confusing the executable path and cwd.
Thanx a lot...
This is very useful for my knowedges about Cocoa. I understand this in Sherm
email (here in the mail-list).
But anybody know how to solve this? How to make Cocoa Apps set the correct
cwd (the path where app really is).
Adam replied me:
>
If you require that these files are created in the same directory as the
>
actual tools, then use argv [0] in your command line tools which I think
>
lets you get the directory you want.
But it is not working... my Cocoa App (Aqua Interface for UNIX CLI app)
continue looking for the CONFIG file in /, not in teh same path where CLI
app is.
Thanx a lot for your help...
Alberto V. M.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.