Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buzztaiki/eab0f1f94868674a9eaf6b5d03d7a79f to your computer and use it in GitHub Desktop.
Save buzztaiki/eab0f1f94868674a9eaf6b5d03d7a79f to your computer and use it in GitHub Desktop.
Wayland の Electron アプリで画面共有する

Wayland の Electron アプリで画面共有する

Electron アプリなら大体 WebRTC で画面共有してるはずなので、

とすれば多分使える。少なくとも Slack なら使える。

WebRTC が xdg-desktop-portal を経由して PipeWire を使えばいいので XWayland でよい (Chromium の Native Wayland は日本語入力まわりに問題がある 23)。

別解

OBS 等で画面を撮影して、それを仮想デバイスのカメラにして共有してもよい。めんどいけど。

関連リンク

Footnotes

  1. 元々は flatpak 等の隔離された環境からデスクトップ機能にアクセスするためのインターフェース群。実装はデスクトップ環境ごとにある。翻って、スクリーンキャスト等の共通インターフェイスとして使われていたりもする。らしい。

  2. 无法在Chrome(Wayland)中使用fcitx5 · Issue #263 · fcitx/fcitx5

  3. 1183262 - Add support for gtk im module on ozone wayland platform - chromium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment