Open lcnittl opened 1 year ago
This refs https://github.com/koppor/jabref/issues/572, because there should be a proper hover.
@lcnittl Can you show me, what on HostB is shown in the preferences as default owner?
After this is fixed, work should start at https://github.com/JabRef/jabref/issues/8344
@koppor Nice hint -- indeed the default owner on HostB
was set to UserA
(i.e. the OS username on HostA
).
Some more testing, always starting from:
@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
(where JabRef default owner = OS username = UserA
)
Actions performed on HostB
: (OS username = UserB
)
JabRef default owner = UserA
@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
@Comment{jabref-meta: fileDirectoryLatex-UserA-HostB:C:\\Path\\B;}
JabRef default owner = UserB
(= OS username )
@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
@Comment{jabref-meta: fileDirectoryLatex-UserB-HostB:C:\\Path\\B;}
→ this matches the desired config
JabRef default owner = UserOther
@Comment{jabref-meta: fileDirectoryLatex-UserA-HostA:C:\\Path\\A;}
@Comment{jabref-meta: fileDirectoryLatex-UserOther-HostB:C:\\Path\\B;}
So there seems to be a mix-up between OS username and JabRef default owner:
Probably related: The fileDirectory
property is also affected by this, although it uses "JabRef default owner" for both storing and reading (and completely ignores OS user).
JabRef version
5.9 (latest release)
Operating system
Windows
Details on version and operating system
No response
Checked with the latest development build
Steps to reproduce the behaviour
JabRef locks onto the first user encounter in
fileDirectoryLatex
.To reproduce:
Create bib file
on a
HostA
with aUserA
setfileDirectoryLatex
toC:\Path\A
(via GUILibrary
>Library properties
>LaTeX file directory
)This will create the following comment:
and shows in the GUI as:
Move/Copy the file to a
HostB
on
HostB
with aUserB
setfileDirectoryLatex
toC:\Path\B
Instead of the anticipated comments:
the file will now contains:
(note the user on
HostB
is set toUserA
)Yet, the GUI shows:
Features like relative paths of
Aux File
(forTexGroup
) do not work.Temporary "fix" in the bib file:
The user can be manually corrected in the bib file (with a text editor):
Now, the
TexGroup
relative paths forAux File
works.Problems encountered with this "fix":
However, the GUI shows an empty
LaTeX file directory
(Library
>Library properties
):When adding
C:\Path\B
onHostB
back via GUI, the bib file contains:(note the additional entry for
HostB
, again with the wrong userUserA
)The GUI would now show the field filled:
Appendix
No response