flathub / org.keepassxc.KeePassXC

https://flathub.org/apps/details/org.keepassxc.KeePassXC
27 stars 16 forks source link

Non-web help doesn't work #97

Open wjt opened 2 years ago

wjt commented 2 years ago

In the Help Menu, clicking any of the following three items has no effect:

Nothing of interest is shown in the terminal.

Debug information

KeePassXC - Version 2.7.1 Revision: 5916a8f Distribution: Flatpak

Qt 5.15.5 Debugging mode is disabled.

Operating system: KDE Flatpak runtime CPU architecture: x86_64 Kernel: linux 5.15.0-39-generic

Enabled extensions:

Cryptographic libraries:

bbhtt commented 8 months ago

KeepassXc just uses QDesktopServices::openUrl here

This seems like an issue in Qt 5.15, seems to be resolved in 6.6.

An easy way to repro this issue is:

flatpak run --command=python --socket=x11 --filesystem=$(pwd) com.riverbankcomputing.PyQt.BaseApp//6.6 test.py which shows the this dialogue

image

but flatpak run --command=python --socket=x11 --filesystem=$(pwd) com.riverbankcomputing.PyQt.BaseApp//5.15-23.08 test.py shows nothing even though it returns True

from PyQt6.QtWidgets import QApplication
from PyQt6.QtCore import QUrl
from PyQt6.QtGui import QDesktopServices

app = QApplication([])
QDesktopServices.openUrl(QUrl("file:///app/share/metainfo/com.riverbankcomputing.PyQt.BaseApp.metainfo.xml"))

(Change the imports to Qt5 when needed)

My guess is some flatpak support is missing or broken in Qt 5.15.

droidmonkey commented 8 months ago

We are moving to Qt 6 for our 2.8.0 release and this should be resolved at that time