Open Abdull opened 4 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.
It doesn't works for me on Linux Mint. Searching is not works, but there is main window.
OS: Linux Mint 22 x86_64 Kernel: 6.8.0-45-generic Shell: bash 5.2.21
adam@TP:~$ flatpak run io.emeric.toolblex
Gtk-Message: 12:29:40.473: Failed to load module "xapp-gtk3-module"
Qt: Session management error: Could not open network socket
qrc:/qml/PanelDeviceInfos.qml:94:21: QML TextSelectable: Binding loop detected for property "implicitWidth":
qrc:/qml/TextSelectable.qml:10:5
qrc:/qml/AdapterWidget.qml:137:13: QML TextSelectable: Binding loop detected for property "implicitWidth":
qrc:/qml/TextSelectable.qml:10:5
qrc:/qml/AdapterWidget.qml:83:13: QML TextSelectable: Binding loop detected for property "implicitWidth":
qrc:/qml/TextSelectable.qml:10:5
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
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
Yes it's probably share=network
then. I'll update the release adding this line and we'll see.
Unfortunately now the app will have a big red "unsafe" warning :(
toolBLEx has been updated on flatpak, can anyone confirm?
Thanks for your feedbacks! Let's see if we can get some more.
No issues on endlessOS (0.13)
toolBLEx has been updated on flatpak, can anyone confirm?
to which version?
The 0.13 version has the permission update.
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