bibnotes icon indicating copy to clipboard operation
bibnotes copied to clipboard

[Bug] Bibnotes doesn't copy images into the Vault

Open eazy12 opened this issue 2 years ago • 1 comments

Bibnotes doesn't copy images into the Vault. Obsidian's console outputs this message: Uncaught Error: ENOENT: no such file or directory, copyfile '/home/user/Zotero/storage/ZTWTKZRM/image.png' -> 'home/user/Documents/Obsidian Vault/Bibnotes_export/Booksname_ZTWTKZRM.png'.

New path lacks the / sign at the start of the string. This line of code is responsible for creating this path but if-statement is false for me despite being of Fedora Linux 38 user.

I've managed to make image copy work by monkey-patching (I hope I used right term) by removing if-statement and just keeping its body code right into Obsidian's console.

OS: Fedora Linux 38 Kernel: Linux 6.0.8-xm1.0.fc38.x86_64 Zotero: 6.0.26 Obsidian: 1.2.8 Bibnotes Formatter: 0.9.219

eazy12 avatar May 10 '23 16:05 eazy12

Seems like this bug happens only for files stored with "Attach Link to File" instead of ones stored as a copy of the file.

eazy12 avatar May 11 '23 12:05 eazy12