-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zotero file location in config.edn does not work between platforms #9261
Comments
I have the same problem between two pc, both are Windows 10 and Logseq 0.9.1: Reproduce the Bug After set up Zotero API key and etc.
|
Sounds need some extra design on the cross-device config file |
Hello, thanks for your reply. As your link provided says: Any options that are valid in the local config.edn are valid for global config.edn. It seems I can't modify global config.edn independently. I tried to cut all content from local to global, then global config.edn will have no content either after a while. Any modification in local config.edn seems determin global config.edn. It is also mentioned "Local config.edn overrides config options that are present in a global config.edn. However, if the config is a map, the local config option is merged over the global config option." Where I don't quite understand how the example helps in this case. |
My current workaround is
Then everytime you clone the repo to somewhere else, a new config.edn will be generated for that specific repo. |
Thanks for the reply. This is really a good solution if using GitHub to sync everything. Meanwhile, I hope Logseq could also find a way to solve this sync problem with storage sync services. |
Maybe we have to wait for a "device specific" config mechanism. It won't be a small project. |
It looks to me close to what the Here is how I did it.
Now in theory it is good to go. Unfortunately, as I said, it's a bit buggy so this is not the end.
This works until we do similar things on anothe device (and sync). So it's just a temporary solution. @cnrpman Would there be any improvement to the Update: This PR #10430 might solve the problem. It works quite well for me in the last few months, both on win10 and Ubuntu22.04. If you are interested, I release the solution on this fork. And please backup your data first if you would like to have a try! |
Search first
What Happened?
I use Logseq on MacOS and Ubuntu with the Zotero integration. Since everything except the API key is stored in config.edn and config.edn is also synced (through git), the problem is that the file locations on both systems are not identical, i.e. if I updated the right location on my Linux machine and sync all files (incl. config.edn), then it won't work on my Mac. If, on the other hand, I use the Mac file locations, I cannot open PDFs from Zotero on my Linux box.
It would be great if config.edn did not store the file location, or made it optional, in which case it (like the API key) has to be provided on each machine.
What is more, the page edn files are also updated whenever you open such a PDF, because the paths are different and part of the Markdown.
Reproduce the Bug
Expected Behavior
Zotero paths unique to each machine, so that:
Screenshots
No response
Desktop or Mobile Platform Information
Ubuntu 20.04, Logseq 0.9.4
MacOS 10.15, same Logseq version
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
The text was updated successfully, but these errors were encountered: