Skip to content

Generalize Linux support for cross-distro compatibility#3

Open
prathampt wants to merge 2 commits intomainfrom
generalize-linux-support-3960776877281666179
Open

Generalize Linux support for cross-distro compatibility#3
prathampt wants to merge 2 commits intomainfrom
generalize-linux-support-3960776877281666179

Conversation

@prathampt
Copy link
Owner

This PR generalizes the application to run on any Linux distribution by removing hardcoded dependencies on GNOME/GTK and Debian-specific packaging.

Key changes:

  1. Theme Detection: Removed os.environ["QT_QPA_PLATFORMTHEME"] = "gtk3" to let Qt auto-detect the platform theme. Added checks for gsettings before querying GNOME settings.
  2. Audio: Added aplay as a fallback for paplay to support systems without PulseAudio (e.g., pure ALSA).
  3. Packaging: Updated pyproject.toml to support standard pip install . with entry points, making it installable on Arch, Fedora, etc.
  4. Documentation: Updated README.md to include generic installation instructions.

PR created automatically by Jules for task 3960776877281666179 started by @prathampt

prathampt and others added 2 commits November 24, 2025 19:22
- 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>
@google-labs-jules
Copy link

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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