buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Mic button does nothing on Linux (WebKitGTK) — permission_request appears to be silently denied

Open egouilliard-leyton opened this issue 2 months ago • 0 comments

Summary

On Linux (Tauri/WebKitGTK build), the mic button in Buzz does nothing when pressed: no OS permission dialog appears, and no microphone capture stream is ever opened. This happens even with a fully working audio stack, so it looks like the app itself is denying the permission request before it reaches the user.

Environment

  • OS: Ubuntu 24.04.3 LTS (amd64)
  • Buzz: AppImage build, app/webview version 1.13.4
  • WebKitGTK: libwebkit2gtk-4.1-0 2.52.6-0ubuntu0.24.04.1
  • GStreamer: 1.24.2 (system)
  • Audio server: PipeWire

What I ruled out

  • Hardware: mic works fine in other apps (confirmed via PipeWire monitoring and other WebRTC apps)
  • Audio server: PipeWire is reachable and functioning; default source is correctly set
  • System permissions: no OS-level mic permission gate on this distro that would silently block it
  • GStreamer WebRTC stack: found and fixed a real gap here — gstreamer1.0-nice (ICE support, required by webrtcbin) was not installed, only the raw libnice10 library was present, so webrtcbin failed to register as a GStreamer element. Installed gstreamer1.0-nice and confirmed gst-inspect-1.0 nice / gst-inspect-1.0 webrtcbin both register cleanly after a registry rescan (rm -rf ~/.cache/gstreamer-1.0). This did not fix the mic button — worth fixing/documenting as a packaging dependency regardless, but it's a separate issue from the one below.
  • Stale/duplicate processes: confirmed only one buzz-desktop instance was running during testing
  • Mic input volume: separately found system mic input was at 39% (unrelated to Buzz) — raised to 85%, does not affect this bug

Root cause (as far as I could determine from the outside)

Live-monitored the buzz-desktop process's PipeWire client while pressing the mic button and speaking: zero microphone-capture streams are ever created — only the existing speaker/playback streams are visible. No permission_request-related dialog appears, and nothing shows up in journalctl for the mic action.

This points to the Rust/Tauri side intercepting WebKitGTK's permission_request signal for getUserMedia() (mic) and calling deny on it internally, before WebKit ever surfaces an OS-level permission prompt. From the outside there's no config file, env var, or system permission that changes this behavior — it appears to be hardcoded into the compiled binary's WebKitGTK permission-request handler.

Steps to reproduce

  1. Run Buzz on Linux via the AppImage (Ubuntu 24.04, WebKitGTK 2.52.6, PipeWire audio)
  2. Click the mic button
  3. Observe: no permission dialog, no error, no capture stream opens (verifiable via pw-cli / wpctl / PipeWire client inspection while the button is pressed)

Expected behavior

Pressing the mic button should trigger WebKitGTK's native permission-request flow (or an in-app equivalent) and, once granted, open a microphone capture stream.

Additional notes

Happy to provide more diagnostics (GST_DEBUG traces, WebKit process env, etc.) if useful — this was debugged entirely from the outside without access to Buzz's source, so I may have missed something app-side that would explain the deny.

egouilliard-leyton avatar Sep 25 '26 09:09 egouilliard-leyton