diff --git a/ZotHero-1.2.1.alfredworkflow b/ZotHero-1.2.2.alfredworkflow similarity index 96% rename from ZotHero-1.2.1.alfredworkflow rename to ZotHero-1.2.2.alfredworkflow index 0e8fcd2..7b2532f 100644 Binary files a/ZotHero-1.2.1.alfredworkflow and b/ZotHero-1.2.2.alfredworkflow differ diff --git a/src/info.plist b/src/info.plist index 5451236..3d9a194 100644 --- a/src/info.plist +++ b/src/info.plist @@ -2224,7 +2224,7 @@ Edit the `ZOTERO_DIR` variable to point to Zotero 5's data directory if you aren version - 1.2.1 + 1.2.2 webaddress https://github.com/deanishe/zothero diff --git a/src/zh b/src/zh index 75bcf2f..0f171d5 100755 --- a/src/zh +++ b/src/zh @@ -632,9 +632,9 @@ def main(wf): datadir = os.getenv('ZOTERO_DIR') or None attachdir = os.getenv('ATTACHMENTS_DIR') or None if datadir: - datadir = wf.decode(datadir) + datadir = wf.decode(os.path.expanduser(datadir)) if attachdir: - attachdir = wf.decode(attachdir) + attachdir = wf.decode(os.path.expanduser(attachdir)) app = zothero.ZotHero(wf.cachedir, datadir, attachdir) # Store app in `zothero` package where everything can access it.