Open Abdull opened 2 months ago
Hi, and first of all thanks for investigating this issue!
I'm not entirely sure if this is a widespread issue or something related to your installation. The flatpak version supposedly has 40k installs and this is the first bug report stating the app doesn't work at all :/
What permission actually allow the software to work? Does it need all the adjustments you mentioned to start working?
share=network
The application doesn't use internet at the moment, so this shouldn't be necessary (and that permission mark the flatpak as "unsafe").
socket=session-bus socket=system-bus device=all
Is session-bus enough? The other two shouldn't be needed AFAIK, and are also marking the app as "unsafe" (and potentially even more). Maybe device=all for USB Bluetooth adapter? That would be weird though...
"can run in the background" and "can send notifications" capabilities should not be necessary either for this application, that neither runs in the background nor send notifications ^^
This might be a Debian-specific issue, the default permissions seem to work fine on Fedora 40. I am also seeing the same type errors, however they don't seem to affect functionality of the application. session-bus
access and device=all
are definitely not required as we are not accessing the hci device directly, and bluez is on the system dbus. share=network
might be what made it work on your machine, because there are similar issues with docker where setting network=host
will fix Bluetooth support within the containers.
$ flatpak run io.emeric.toolblex
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
qrc:/qml/PanelDeviceInfos.qml:94:21: QML TextSelectable: Binding loop detected for property "implicitWidth"
qrc:/qml/PanelDeviceInfos.qml:266: TypeError: Cannot read property 'pairingStatus' of null
qrc:/qml/PanelDeviceInfos.qml:346: TypeError: Cannot read property 'majorClass' of null
qrc:/qml/PanelDeviceInfos.qml:371: TypeError: Cannot read property 'majorClass' of null
qrc:/qml/PanelDeviceInfos.qml:386: TypeError: Cannot read property 'servicesCount' of null
qrc:/qml/PanelDeviceInfos.qml:396: TypeError: Cannot read property 'serviceClass' of null
qrc:/qml/PanelDeviceInfos.qml:629: TypeError: Cannot read property 'mtu' of null
qrc:/qml/PanelDeviceInfos.qml:675: TypeError: Cannot read property 'rssi' of null
qrc:/qml/PanelDeviceInfos.qml:821: TypeError: Cannot read property 'servicesCount' of null
Thanks for your feedbacks! Let's see if we can get some more.
Describe the bug I have installed the 0.12 toolBLEx flatpak version from Flathub (IMHO it should be the flatpak version at commit
121003c55b9c52223b4545af5210457aaddc9eca
).Out-of-the-box / without any flatpak security changes, this flatpak version did not work with Bluetooth, i.e. did not list Bluetooth devices (which on the other hand my operating system (Debian 12 bookworm under KDE 5 Plasma, Wayland) can see and interact with):
Using Flatseal, I gave toolBLEx a bunch of additional permissions. The additional permissions are:
With the permissions already set up in the flathub version release, in sum the permissions look like this:
Also, for portals, I allowed "can run in the backgorund" and "can send notifications":
With these additional permissions, toolBLEx does find Bluetooth devices:
That is, the following error messages no longer show up:
The error messages
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. ...
and allqrc:/qml/...
error messages are probably irrelevant for this issue;Expected behavior toolBLEx flatpak version works with Bluetooth out of the box
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
(I don't add a screenshot, because I don't want to jinx my working installation)
Your environment Please describe the environment you are using:
Where did you download/bought the application from flathub ( https://flathub.org/apps/io.emeric.toolblex ) via
flatpak install flathub io.emeric.toolblex
The version of the application you are running
toolBLEx - Bluetooth device scanner and analyzer
Collection: org.flathub.Stable Installation: system Installed: 136.2 MB Runtime: org.freedesktop.Platform/x86_64/23.08 Sdk: org.freedesktop.Sdk/x86_64/23.08