Comment 4 for bug 1042554

Revision history for this message
Dick Hollenbeck (dickelbeck) wrote : Re: [Bug 1042554] [NEW] Saving footprint in pcb footprint library editor crashes on linux

On 08/28/2012 08:38 AM, Dick Hollenbeck wrote:
> On 08/28/2012 01:09 AM, kuba.fra wrote:
>> Public bug reported:
>>
>> When saving footprint to my new footprints library (*.mod) on linux I've
>> received following error:
>>
>> IO_ERROR: Unable to rename tempfile '/tmp/EMDR_LightFootAdLpsC' to to library file 'EMDR_LightFoot.mod'
> I wonder why there is no matching path on the front of
>
> 'EMDR_LightFoot.mod'
>
>
> Is this the exact text of error message?
>
> If so, then perhaps there is a bug in wxFilename::CreateTempFileName(), or in my use of it.

The docs say this:

"Returns a temporary file name starting with the given /prefix/. If the /prefix/ is an
absolute path, the temporary file is created in this directory, otherwise it is created in
the default system directory for the temporary files or in the current directory."

So what seems to be causing this problem is the fact that there is no preceding path on
your m_lib_name variable.

Go figure.