Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: Linux Wayland/NVIDIA compatibility and Rust warnings #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
digi4care wants to merge 1 commit into winfunc:main
base: main
Choose a base branch
Loading
from digi4care:fix/linux-wayland-nvidia-compat

Conversation

@digi4care
Copy link

@digi4care digi4care commented Dec 23, 2025

Problem

  1. Running bun run tauri dev fails with error: cargo run could not determine which binary to run
  2. On Linux with Wayland and NVIDIA GPU, app fails with: Failed to create GBM buffer of size 800x600
  3. Rust compiler warnings for snake_case and dead_code

Approach

  1. Added default-run = "opcode" to Cargo.toml to specify the default binary
  2. Added automatic detection and workaround for Wayland sessions in main.rs:
    • Detects Wayland via WAYLAND_DISPLAY or XDG_SESSION_TYPE
    • Only applies WEBKIT_DISABLE_DMABUF_RENDERER=1 when needed
    • Respects user-defined environment variables
  3. Fixed snake_case warnings: renamed sessionId to session_id in web_server.rs
  4. Added #[allow(dead_code)] for register_sidecar_process (kept for future use)

Limitations

  • The Wayland/NVIDIA fix is a workaround for an upstream WebKitGTK issue, not a native fix
  • Only affects Linux Wayland users; X11 users are unaffected

Testing

  • Tested on Arch Linux with KDE 6 (Wayland) and NVIDIA GPU
  • Verified bun run tauri dev runs without errors
  • Verified cargo build completes without warnings

- Add default-run = "opcode" to Cargo.toml to fix binary selection
- Add automatic WEBKIT_DISABLE_DMABUF_RENDERER for Wayland sessions
- Fix snake_case warnings in web_server.rs (sessionId -> session_id)
- Suppress dead_code warning for register_sidecar_process
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /