Skip to content

Wrong User for fileDirectoryLatex #9990

Open
@lcnittl

Description

@lcnittl

JabRef version

5.9 (latest release)

Operating system

Windows

Details on version and operating system

No response

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

JabRef locks onto the first user encounter in fileDirectoryLatex.

To reproduce:

  1. Create bib file

  2. on a HostA with a UserA set fileDirectoryLatex to C:\Path\A (via GUI Library > Library properties > LaTeX file directory)

    This will create the following comment:

    @Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}

and shows in the GUI as:

image

  1. Move/Copy the file to a HostB

  2. on HostB with a UserB set fileDirectoryLatex to C:\Path\B

    Instead of the anticipated comments:

    @Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
    
    @Comment{jabref-meta: fileDirectoryLatex-UserB-HostB:C:\\Path\\B;}

    the file will now contains:

    @Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
    
    @Comment{jabref-meta: fileDirectoryLatex-UserA-HostB:C:\\Path\\B;}

    (note the user on HostB is set to UserA)

    Yet, the GUI shows:

    image

  3. Features like relative paths of Aux File (for TexGroup) do not work.

Temporary "fix" in the bib file:

The user can be manually corrected in the bib file (with a text editor):

@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}

@Comment{jabref-meta: fileDirectoryLatex-UserB-HostB:C:\\Path\\B;}

Now, the TexGroup relative paths for Aux File works.

Problems encountered with this "fix":

However, the GUI shows an empty LaTeX file directory (Library > Library properties):

image

When adding C:\Path\B on HostB back via GUI, the bib file contains:

@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}

@Comment{jabref-meta: fileDirectoryLatex-UserA-HostB:C:\\Path\\B;}

@Comment{jabref-meta: fileDirectoryLatex-UserB-HostB:C:\\Path\\B;}

(note the additional entry for HostB, again with the wrong user UserA)

The GUI would now show the field filled:

image

Appendix

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Normal priority

Relationships

None yet

Development

No branches or pull requests

Issue actions