Skip to content
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 settings #9

Closed
mergen3107 opened this issue Dec 27, 2023 · 1 comment
Closed

Zotero settings #9

mergen3107 opened this issue Dec 27, 2023 · 1 comment

Comments

@mergen3107
Copy link

Hi!
I can see Zotero tries to open settings upon init:

zotero.koplugin/main.lua

Lines 138 to 146 in 43f7e1e

function Plugin:init()
self.initialized = false
self:onDispatcherRegisterActions()
self.ui.menu:registerToMainMenu(self)
self.settings = LuaSettings:open(("%s/%s"):format(DataStorage:getSettingsDir(), "zotero_settings.lua"))
xpcall(self.initAPIAndBrowser, self.initError, self)
self.initialized = true
print("Z: successfully initialized!")
end

But it doesn't save that file yet? I don't see it in the koreader/settings.

Thanks!

@stelzch
Copy link
Owner

stelzch commented Oct 2, 2024

The settings are read and stored in zoteroapi.lua. They should end up in a file called zotero/meta.lua inside the koreader directory.
I've removed this legacy snippet of code above in a recent commit, again thanks for pointing it out.

I'll close the issue for now, if you still have questions feel free to reopen it :)

@stelzch stelzch closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants