Skip to content

Zotero file location in config.edn does not work between platforms #9261

@ianhellstrom

Description

@ianhellstrom

Search first

  • I searched and no similar issues were found

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

  1. Set up Logseq with Zotero on Mac
  2. Set the file location to Zotero's default: https://www.zotero.org/support/zotero_data
  3. Set up Logseq with Zotero on Linux
  4. Set up the file location as per Zotero's setup on Linux
  5. Sync to git from either Mac or Linux
  6. git pull to the other machine
  7. See that the PDF does not open because the paths are different

Expected Behavior

Zotero paths unique to each machine, so that:

  • You can open files independently from how they are stored locally
  • File paths are not hard-coded in the edn files of the pages

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.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    :type/feature-requestClosed at will. Feature requests are in Logseq forum https://discuss.logseq.com/estimate: largeRequire major refactor of a featureintegration:zoterouser-configUser configuration e.g. ~/.logseq/config or logseq/*.edn

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions