Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Screensharing on Sway / Pipewire / xdg-desktop-portal(-wlr)

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
n3ph
n00b
n00b
Posts: 4
Joined: Mon Jul 06, 2020 10:03 am

Screensharing on Sway / Pipewire / xdg-desktop-portal(-wlr)

  • Quote

Post by n3ph » Mon Jul 06, 2020 10:36 am

Hey folks!

I tried hard to get pipewire on sway working but I am stuck having only a black screen and a mouse cursor while sharing the screen.
Sway is started by systemd directly.

Code: Select all

emerge -vp sway pipewire xdg-desktop-portal xdg-desktop-portal-wlr

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   #] media-video/pipewire-0.3.6:0/0.3::gentoo  USE="X alsa bluetooth gstreamer pulseaudio systemd vulkan -debug -doc -ffmpeg -jack -test" 0 KiB
[ebuild   R   *] gui-wm/sway-9999::gentoo  USE="X man swaybar swaybg swayidle swaylock swaymsg swaynag systemd tray wallpapers (-elogind) -fish-completion -zsh-completion" 0 KiB
[ebuild   R   #] sys-apps/xdg-desktop-portal-1.7.2::gentoo [1.7.2::sorrow] USE="screencast -doc -geolocation" 0 KiB
[ebuild   R   ~] sys-apps/xdg-desktop-portal-wlr-0.1.0::sorrow  USE="systemd (-elogind)" 0 KiB

Total: 4 packages (4 reinstalls), Size of downloads: 0 KiB

$ cat .config/sway/env
XDG_CURRENT_DESKTOP=sway
MOZ_ENABLE_WAYLAND=1
RTC_USE_PIPEWIRE=true
XDG_SESSION_TYPE=wayland

$ systemctl --user status
● c3po
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Mon 2020-07-06 11:54:06 CEST; 24min ago
   CGroup: /user.slice/user-1000.slice/user@1000.service
           ├─init.scope
           │ ├─4518 /lib/systemd/systemd --user
           │ └─4519 (sd-pam)
           ├─pipewire.service
           │ ├─4525 /usr/bin/pipewire
           │ ├─4531 exec pipewire-media-session
           │ ├─4537 /usr/bin/pulseaudio --start --log-target=syslog
           │ └─4555 /usr/libexec/pulse/gsettings-helper
           └─dbus.service
             └─4529 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Starting xdg-desktop-portal and xdg-desktop-portal-wlr by hand leads to a degraded state:

Code: Select all

$ systemctl --user start xdg-desktop-portal
$ systemctl --user start xdg-desktop-portal-wlr
$ systemctl --user status
● c3po
    State: degraded
     Jobs: 0 queued
   Failed: 1 units
    Since: Mon 2020-07-06 11:54:06 CEST; 28min ago
   CGroup: /user.slice/user-1000.slice/user@1000.service
           ├─xdg-permission-store.service
           │ └─14650 /usr/libexec/xdg-permission-store
           ├─xdg-desktop-portal.service
           │ └─15457 /usr/libexec/xdg-desktop-portal
           ├─init.scope
           │ ├─4518 /lib/systemd/systemd --user
           │ └─4519 (sd-pam)
           ├─xdg-desktop-portal-wlr.service
           │ └─15468 /usr/libexec/xdg-desktop-portal-wlr
           ├─pipewire.service
           │ ├─4525 /usr/bin/pipewire
           │ ├─4531 exec pipewire-media-session
           │ ├─4537 /usr/bin/pulseaudio --start --log-target=syslog
           │ └─4555 /usr/libexec/pulse/gsettings-helper
           └─dbus.service
             └─4529 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Result is always the same. No matter if chromium (chrome://flags/#enable-webrtc-pipewire-capturer
enabled) or Mozilla Firefox or whatever...

A python script found here https://gitlab.gnome.org/snippets/19 works flawlessly..


Does anyone got this working?
Top
n3ph
n00b
n00b
Posts: 4
Joined: Mon Jul 06, 2020 10:03 am

  • Quote

Post by n3ph » Tue Jul 21, 2020 5:11 pm

Got that working with Firefox as described here: https://github.com/emersion/xdg-desktop ... patibility

ATM I am testing the tumbleweed patch on a local repo with chromium 83.0.4103.116 - still compiling..
Top
n3ph
n00b
n00b
Posts: 4
Joined: Mon Jul 06, 2020 10:03 am

  • Quote

Post by n3ph » Tue Jul 21, 2020 10:15 pm

chromium is also working with the tumbleweed patch!

https://build.opensuse.org/package/view ... -0.3.patch

Would be nice to see that included in the official ebuild...
Top
n3ph
n00b
n00b
Posts: 4
Joined: Mon Jul 06, 2020 10:03 am

  • Quote

Post by n3ph » Wed Jul 22, 2020 7:06 pm

https://github.com/gentoo/gentoo/pull/16784
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic