Am 15.02.2020 um 15:31 schrieb Enrico Forestieri <for...@lyx.org>:
> 
> On Sat, Feb 15, 2020 at 02:41:19PM +0100, Stephan Witt wrote:
>> 
>> I came up with another path. IMHO easier to understand. 
>> And it works with all variants of Qt and input.
> 
> Unfortunately, it confuses me more than the previous one.
> Please, can you apply the attached debug patch and report the
> results you obtain with both Qt 5.9 and 5.12?

Here you are:

version: 5.9.8
file_name: 
/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.aScQxky52159/lyx_tmpbuf0/Tutorial.tex
abstmp:    
/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.rHrJLJU14712
realtmp:   
/private/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.rHrJLJU14712

Qt version: 5.12.3
file_name: 
/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.aScQxky52159/lyx_tmpbuf0/Tutorial.tex
abstmp:    
/private/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.BOxdOihSBXEp
realtmp:   
/private/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.BOxdOihSBXEp

The question is: to be private or not.

The idea is as follows:
1. file_name may be private or not -> convert it to real path -> private
2. buffers temporary directory may be private or not -> check it 
(using the internal info buffer’s using abstmp as base - not good)
3. if abstemp and realtmp are different make real path of file_name abstemp 
based

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to