Skip to content

refactor: extract D-Bus constants to forgewatch.constants#66

Open
0b0d3 wants to merge 1 commit intodvoraj75:mainfrom
0b0d3:refactor/extract-dbus-constants
Open

refactor: extract D-Bus constants to forgewatch.constants#66
0b0d3 wants to merge 1 commit intodvoraj75:mainfrom
0b0d3:refactor/extract-dbus-constants

Conversation

@0b0d3
Copy link
Copy Markdown

@0b0d3 0b0d3 commented Mar 21, 2026

Summary

  • Created forgewatch/constants.py with shared D-Bus constants (BUS_NAME, OBJECT_PATH, INTERFACE_NAME)
  • Updated dbus_service.py and indicator/client.py to import from the shared module
  • Eliminates duplication and prevents drift between daemon and indicator

Closes #34

Test plan

  • Existing tests pass
  • D-Bus communication still works between daemon and indicator
  • Constants are consistent across both modules

🤖 Generated with Claude Code

Move BUS_NAME, OBJECT_PATH, and INTERFACE_NAME to a shared constants
module to avoid drift between dbus_service.py and indicator/client.py.

Closes dvoraj75#34

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Extract D-Bus constants to forgewatch.constants

1 participant