Skip to content

refactor: move platform-specific code to platform_util.py#576

Closed
Eashan-H wants to merge 1 commit into
FOSSEE:feature/tool-manager-integrationfrom
Eashan-H:refactor-tool-manager-subsystem-platform-util
Closed

refactor: move platform-specific code to platform_util.py#576
Eashan-H wants to merge 1 commit into
FOSSEE:feature/tool-manager-integrationfrom
Eashan-H:refactor-tool-manager-subsystem-platform-util

Conversation

@Eashan-H

Copy link
Copy Markdown

Purpose

Refactor the Tool Manager subsystem to centralize platform detection and improve cross platform support.

Previously platform specific logic such as OS detection, backend, GUI selection, and OS labeling were duplicated across multiple files.

Approach

  • Added platform_utils.py as a centralized platform utility module.
  • Removed duplicated platform detection code from gui_fixed.py.
  • Added platform aware backend selection in main.py.
  • Added dynamic OS labels instead of hardcoded Windows-specific labels.
  • Updated uninstall and installation workflows to use the selected backend dynamically.

Benefits

  • Reduces code duplication.
  • Improves maintainability.
  • Centralizes platform specific behavior.
  • Provides a cleaner foundation for all OS.
  • Makes future platform related changes easier to implement.

@Eashan-H Eashan-H closed this Jun 15, 2026
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.

1 participant