Hi,
If I open the User Guide from the Help menu, KeePassXC opens this URL:
//usr/share/keepassxc/docs/KeePassXC_UserGuide.html
In most browsers this works just fine, but in Tor Browser this results
in a failed attempt to load:
http://usr/share/keepassxc/docs/KeePassXC_UserGuide.html
This comes from:
customOpenUrl(QString("file:///%1").arg(resources()->dataPath("docs/KeePassXC_UserGuide.html")));
I suppose this makes us pass to customOpenUrl the
file:////usr/share/keepassxc/docs/KeePassXC_UserGuide.html argument
(note the 1 too many leading slash), which apparently QUrl() later
converts to //usr/share/keepassxc/docs/KeePassXC_UserGuide.html.
I suspect replacing file:///%1 with file://%1 in the code I pasted
above would:
- Fix the problem in Tor Browser, and potentially other browsers.
- Actually open the URL upstream apparently intended to open.