Re: [hatari-devel] Issue reports on Hatari v1.8.0

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Thomas,

Thanks for investigating this. I will try to see if I can add the code to my local copy of SDLMain.m this evening to see if it helps with the screenshot directory problem.


Bob C


On Aug 11, 2014, at 3:26 PM, Thomas Huth <th.huth@xxxxxx> wrote:

> Am Mon, 11 Aug 2014 21:09:05 +0200
> schrieb Mikael Degerfält <micke@xxxxxxxxx>:
> 
>> The screenshot directory is related to an issue I raised a few month
>> ago about working directory.
>> 
>> This is what I wrote then:
>> 
>>> It turns out that hatari has always done a chdir to the application
>>> folder if it was detected that it was started by the Finder. This
>>> detection however, does not work in later versions of Mac OS.
>> 
>> I did a quick test that shows that the default cwd for apps started
>> from finder is /. I do not know of any way to check if an was started
>> from the finder or not, so I don't have a solution for this.
> 
> Have a look at the latest version of SDLMain.m from the SDL 1.2
> repository:
> 
> http://hg.libsdl.org/SDL/file/1a6ca0c7977e/src/main/macosx/SDLMain.m
> 
> Check the function IsFinderLaunch() ... they have some comments about
> OS X 10.9 in there, so this seems to be a known problem already.
> We should maybe merge that IsFinderLaunch() function into our version
> of SDLMain.m, too...?
> 
> Thomas
> 
> 




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/