YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
3.58k stars 105 forks source link

unable to use screencast when running niri for first time #571

Closed JimitSoni18 closed 2 months ago

JimitSoni18 commented 2 months ago

System Information

void linux on thinkpad, glibc

i have observed that when i run niri in a dbus session, using dbus-run-session niri --session, then start a browser and try screensharing, in google meet or discord or anywhere else, the gtk window picker does not open. here is an image after i left the google meeting saying it could not share screen: Screenshot from 2024-08-03 12-51-56

however, if i exit niri (pressing super+shift+e) then run command niri (not running in a session, and not using flag --session), then exit that again (pressing super+shift+e), and run niri in a dbus session again, using dbus-run-session niri --session, the screen casting starts working, and the gtk window picker appears this time. see the picture attached: Screenshot from 2024-08-03 12-55-12

here are some spawn commands i run when i run niri, if it helps: spawn-at-startup "pipewire" spawn-at-startup "dunst" spawn-at-startup "swww-daemon" spawn-at-startup "swww img wallpapers.webp" spawn-at-startup "eww" "open" "bar"

i thought that maybe niri requires pipewire running on startup to cast screen, so i tried pipewire before starting niri, but it did not work.

YaLTeR commented 2 months ago

You currently need to run pipewire before niri, spawn-at-startup is too late for that.

i tried pipewire before starting niri, but it did not work

That's weird, it should work I think.

JimitSoni18 commented 2 months ago

yeah i'll try again and see if it works

JimitSoni18 commented 2 months ago

now i am able to use screencast, previously i was spawning pipewire directly in the shell using nohup pipewire > /dev/null &, now i an launching in a fish script, and it does seem to work.

i still think it is weird that it does not work when pipewire is spawned from the shell