Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoding DBus user UID #1181

Closed
kiwiz opened this issue Dec 23, 2022 · 1 comment · Fixed by #1182
Closed

Hardcoding DBus user UID #1181

kiwiz opened this issue Dec 23, 2022 · 1 comment · Fixed by #1182

Comments

@kiwiz
Copy link
Contributor

kiwiz commented Dec 23, 2022

  • bleak version: develop
  • Python version: 3.10.6
  • Operating System: Linux
  • BlueZ version (bluetoothctl -v) in case of Linux: 5.64

Description

I'd like to connect to the system DBus via a Docker container that uses a user namespace. This currently fails, as the DBus client implementation passes along the remapped UID (ex: 0) instead of the actual UID on the host (ex: 1000000). I've submitted a small change against dbus-fast (available in v1.83.0) that allows a hardcoded UID to be specified. What would be the best way to expose this functionality within bleak?

Logs

n/a

@kiwiz kiwiz changed the title Allow clients to Hardcoding DBus user UID Dec 23, 2022
@dlech
Copy link
Collaborator

dlech commented Dec 23, 2022

I would suggest using an environment variable like BLEAK_DBUS_UID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants