zotero from windows to linux problem
hello every one
I have used Zotero in windows for a long time.
I use to link to my files and I used the base directory option
but now I am migrating to Linux.
unfortunately, the base directory option does not work
for example in windows, my base directory is "Z:\H\research"
but in Linux when I try to select a base directory, an exception occurs with the following message:
Possibly unhandled rejection:
Unexpected value 'Z:\H\research'
Error: Unexpected value 'Z:\H\research'
Zotero.File</this.pathToFile@chrome://zotero/content/xpcom/file.js:56:11
Zotero_Preferences.Attachment_Base_Directory.choosePath<@chrome://zotero/content/preferences/preferences_advanced.js:562:25
From previous event:
oncommand@chrome://zotero/content/preferences/preferences.xul:1:1
I have used Zotero in windows for a long time.
I use to link to my files and I used the base directory option
but now I am migrating to Linux.
unfortunately, the base directory option does not work
for example in windows, my base directory is "Z:\H\research"
but in Linux when I try to select a base directory, an exception occurs with the following message:
Possibly unhandled rejection:
Unexpected value 'Z:\H\research'
Error: Unexpected value 'Z:\H\research'
Zotero.File</this.pathToFile@chrome://zotero/content/xpcom/file.js:56:11
Zotero_Preferences.Attachment_Base_Directory.choosePath<@chrome://zotero/content/preferences/preferences_advanced.js:562:25
From previous event:
oncommand@chrome://zotero/content/preferences/preferences.xul:1:1
You should try, “/Z/H/Research”
But you should check your path carefully. A more common path would be “~/H/Research”
I do know the difference in file path separator between Windows and Linux.
I think the problem is that it try to reopen the base directory specified using Windows style in Linux
I changed the base directory in prefs.js as you explained, and it did work for a moment (i open a linked file ). However, the problem occurs again (the same file I opened before can't be found).
I do have better-bibtex and zutilo add-on installed.
I tried to run with --safe-mode but with no luck.
If the base directory wasn't set properly on another computer, the files added on that computer will still be set to absolute paths and won't work here, no matter what you set the base directory to.
You can use Zutilo to manually inspect the path and make modifications, but the base directory setting will certainly work when used correctly.
I still believe that there is some kind of bug here, and this is why.
1- the field in the database that contains the information about the link contains information of this style. "attachments:" plus the rest of the relatif path to the file
2- before I start Zotero, I made the changes as you suggested before
3- when I start Zotero as I said before the linked files are founded however after a moment or after restarting Zotero the problem occurs.
4- when I check back the field in the database I found that the information has changed from the style "attachments:" to an absolute path but it corresponds to the windows drive style (H:/xxx) with slashes.