Skip to content

Conversation

@VedantSawant616
Copy link

this pull request introduces a new module to handle system bus interactions and refactors the panctl utility to use it.

changes include:

  • added: pantalaimon/bus_helper.py to encapsulate system bus-related logic.
  • modified: panctl.py to integrate with the new bus_helper.py module, improving the overall structure and readability of the utility.
  • modified: daemon.py to support the new system bus functionality.

these changes make the panctl command-line utility more robust and maintainable by separating concerns and centralizing bus-related operations.

Copy link
Collaborator

@chookity-pokk chookity-pokk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @VedantSawant616! Just a couple quick comments. It also seems like the tests are failing. You can run them locally after installing tox (pip install tox) and then run tox -e coverage which should run all the tests.

Comment on lines +13 to +16
if bus_choice == "system":
return dbus.SystemBus()
elif bus_choice == "session":
return dbus.SessionBus()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you adjust the README to show these options?

# Use the helper to get the bus
bus = get_bus(args.bus)

# TODO: Place daemon startup logic here
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR ready for review? Seems like we've got a significant TODO here.

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 this pull request may close these issues.

2 participants