Re: Proposal: an addition to glib for getting the absolute path of the current binary.



On Tue, 2004-04-13 at 11:17, Sven Neumann wrote:
> did anyone check how this problem is dealt with in Mac OS X
> application images (such as http://gimp-app.sourceforge.net/)? These
> dmg files are self-contained application bundles...I guess that the base
> directory of this bundle is mounted into the filesystem when the app
> is started.

There's no mounting at run time. The dmg file is a disk image, which
contains the application bundle, but you just copy the app out of the
image into your /Applications directory (or wherever) and then throw
away the disk image.

> It may be worth to investigate how the problem is solved here.

OS X-specific magic. There's an API they can use to find where the
bundle they were launched from is, and then they can just find all the
other files relative to that.

-- Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]