[MPlayer-dev-eng] [PATCH] Mac OS X Application Bundle Support

Chris Roccati roccati at pobox.com
Mon Nov 15 23:06:55 CET 2004


On 11 Nov 2004, at 21:46, Diego Biurrun wrote:
> This should be no problem, the path you specify need not be absolute, 
> it can
> well be relative, just look at Sascha's MinGW packages.  There the
> ressources are in an mplayer/ directory relative to the package root.  
> You
> can unzip the package anywhere you want, it will work from any 
> directory.

Ok, I *TOTALLY DON'T LIKE* how this patch works (far too much "worse is 
better" unix style), but it's not my program.


The patch adds an --enable-macosx-bundle switch to configure, whose 
default is 'auto', which follows the state of the 
--enable-macosx-finder-support switch.

it also changes the get_path() function in getpath.c:
In order to retain the support for configuration files in the user's 
home directory, the patched get_path() function explicitly checks for 
the existence of the file in the user directory. If it is not found, 
the path inside the application bundle is returned.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macosx_bundle.patch
Type: application/text
Size: 3554 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041115/1fc282a4/attachment.bin>


More information about the MPlayer-dev-eng mailing list