and this error exists on my system as well now (didn't a while back).
I attempted the workaround script provided by @njs and I can confirm it "solves" the issue.
I then undid the script work-around and installed "libnss3-dev" (which depends on "libnspr4-dev") per @kktkht and this ALSO solved the issue.
Personally, IMHO, the script workaround is a cleaner solution since nothing else requires additional packages...especially 'dev' packages when not developing.
I created a script called "zotero-evince" which contains:
#!/bin/sh unset LD_LIBRARY_PATH exec evince "$@"
Make sure you make it executable and then point Zotero's config to use this script as the custom PDF viewer (Preferences -> General -> Open PDFs Using...).
I'm still curious why that has helped. I can open evince without issue in Zotero on Ubuntu 19.10, and I can't find the string LD_LIBRARY_PATH anywhere in the Zotero source.
I started seeing this for the first time today with Zotero 5.0.94 on Ubuntu 18.04 using the Cinnamon desktop environment. I have configured evince as my PDF viewer system-wide.
Restarting Zotero (without installing any additional packages) fixed it for now at least.
Only applying the fix from njs fixed the issue for now.
OS : Linux, Debian Buster (10)
Kernel: 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26)
Zotero: 5.0.83
and this error exists on my system as well now (didn't a while back).
I attempted the workaround script provided by @njs and I can confirm it "solves" the issue.
I then undid the script work-around and installed "libnss3-dev" (which depends on "libnspr4-dev") per @kktkht and this ALSO solved the issue.
Personally, IMHO, the script workaround is a cleaner solution since nothing else requires additional packages...especially 'dev' packages when not developing.
I created a script called "zotero-evince" which contains:
#!/bin/sh
unset LD_LIBRARY_PATH
exec evince "$@"
Make sure you make it executable and then point Zotero's config to use this script as the custom PDF viewer (Preferences -> General -> Open PDFs Using...).
I've also experienced this problem randomly off and on in the past.
I indeed solved my problem with:
sudo apt install libnss3-dev
Restart Zotero. Then everything works!
Restarting Zotero (without installing any additional packages) fixed it for now at least.
Simply closing zotero and opening it again solved the problem.