Generalize Linux support for cross-distro compatibility#3
Generalize Linux support for cross-distro compatibility#3
Conversation
- Remove hardcoded GTK3 theme in main.py to allow native Qt theme detection. - Add fallback to `aplay` (ALSA) for audio playback in ui_overlay.py. - Wrap GNOME `gsettings` calls with `shutil.which` check for safer execution on non-GNOME desktops. - Configure `pyproject.toml` with `setuptools` build backend and entry points. - Create `programming-habits` CLI command. - Update README.md with generic pip installation instructions and system dependencies for major distros. Co-authored-by: prathampt <120186258+prathampt@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR generalizes the application to run on any Linux distribution by removing hardcoded dependencies on GNOME/GTK and Debian-specific packaging.
Key changes:
os.environ["QT_QPA_PLATFORMTHEME"] = "gtk3"to let Qt auto-detect the platform theme. Added checks forgsettingsbefore querying GNOME settings.aplayas a fallback forpaplayto support systems without PulseAudio (e.g., pure ALSA).pyproject.tomlto support standardpip install .with entry points, making it installable on Arch, Fedora, etc.README.mdto include generic installation instructions.PR created automatically by Jules for task 3960776877281666179 started by @prathampt