Skip to content

add linux support, update and fix dependences#13

Open
ANGELUSD11 wants to merge 1 commit into
bukanspot:masterfrom
ANGELUSD11:linux-support
Open

add linux support, update and fix dependences#13
ANGELUSD11 wants to merge 1 commit into
bukanspot:masterfrom
ANGELUSD11:linux-support

Conversation

@ANGELUSD11
Copy link
Copy Markdown

Refactor: Modernize VirtualBox integration, add Linux support, and simplify setup

Description:

🚀 Summary
This PR modernizes the VirtualBox integration and resolves the common ModuleNotFoundError: No module named 'vboxapi' error. It replaces the manual VirtualBox SDK dependency with a more
robust and automated solution, while also introducing full support for Linux environments.

🛠 Key Changes

  • Library Migration: Migrated from direct vboxapi dependency to the virtualbox (pyvbox) library. This eliminates the need for users to manually download and install the VirtualBox SDK
    via vboxapisetup.py.
  • Cross-Platform Support:
    • Added logic to detect VirtualBox processes on both Windows (VirtualBox.exe) and Linux (VBoxSVC, VirtualBox).
    • Implemented automatic path correction: If the script runs on Linux but finds Windows-style paths in config.ini, it automatically adjusts to the standard /usr/bin/virtualbox.
  • Dependency Automation: The script now detects if pywin32 is missing on Windows systems and installs it automatically via subprocess, significantly improving the Out-Of-The-Box
    Experience (OOBE).
  • Documentation Overhaul: Rewrote README.md to remove obsolete installation steps and provide clear instructions for the new cross-platform workflow.

🐞 Bug Fixes

  • Fixed the "vboxapi not found" error that prevented the script from running on clean Python installations.
  • Fixed absolute path failures when sharing the same config.ini between different operating systems.

✅ Verification

  • Linux (Ubuntu/Arch): Verified that the script correctly detects running VMs and updates Discord status.
  • Windows not tested❗

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