LeFroid / Viper-Browser

A lightweight Qt5 web browser using QtWebEngine
GNU General Public License v3.0
217 stars 21 forks source link

Does not run on Xubuntu xenial, libsoftokn3.so missing #7

Closed probonopd closed 5 years ago

probonopd commented 5 years ago
me@host:~$ Downloads/Viper_Browser-50-x86_64.AppImage 
[7549:7581:0512/232323.906633:ERROR:nss_util.cc(674)] Error initializing NSS with a persistent database (sql:/home/me/.pki/nssdb): libsoftokn3.so: cannot open shared object file: No such file or directory
[7549:7581:0512/232323.906699:ERROR:nss_util.cc(154)] Error initializing NSS without a persistent database: NSS error code: -5925
[7549:7581:0512/232323.906712:FATAL:nss_util.cc(156)] nss_error=-5925, os_error=

me@host:~$ sudo apt install libnss3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnss3 is already the newest version (2:3.35-2ubuntu2).

me@host:~$ ls /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so

me@host:~$ ls /home/me/.pki/nssdb
cert9.db  key4.db  pkcs11.txt

me@host:~$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu

Reference: https://github.com/probonopd/linuxdeployqt/issues/35

probonopd commented 5 years ago

me@host:~$ rm ./usr/lib/libnss* works for me here, but more investigation is needed whether this is an appropriate fix.

probonopd commented 5 years ago

In fact, libnss3.so should not be removed from the bundles, as this causes other issues, e.g., https://github.com/probonopd/linuxdeployqt/issues/35#issuecomment-256213517 and https://github.com/AppImage/AppImages/pull/114.

LeFroid commented 5 years ago

Based on the linuxdeployqt issue, it seems like the pragmatic approach is to exclude libnss from the viper-browser bundle (which I've done in c0a8648933181e8e4c295b22f036d93659a1f1aa) until a fix is applied upstream.