ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.78k stars 168 forks source link

Can't get screen sharing to work with NixOS, Nvidia, Wayland, Hyprland #1643

Open haras-unicorn opened 5 months ago

haras-unicorn commented 5 months ago

Avoid duplicates

Ferdium Version

6.7.1

What Operating System are you using?

Other Linux

Operating System Version

NixOS 24.05 (Uakari)

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

When screen sharing on Teams or Discord PipeWire window for picking screen/window opens and I can screen share.

Actual Behavior

I just get a black screen option that shares a black screen (screenshot below).

Steps to reproduce

  1. Go to any app with calling feature
  2. Start screen sharing
  3. Click on the only black screen option
  4. You are now sharing a black screen

Debug link

No response

Screenshots

image

Additional information

env:

BROWSER=/nix/store/kaadkcp0ndwpkzz2bs6myd1ia5ywlgm7-firefox-bin-123.0.1/bin/firefox
CLUTTER_BACKEND=wayland
CMD_DURATION_MS=2
COLORTERM=truecolor
CURRENT_FILE=/home/haras/.cache/starship/init.nu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DIRS_POSITION=0
DISPLAY=:0
DOCKER_HOST=unix:///run/user/1000/docker.sock
DSSI_PATH=/home/haras/.nix-profile/lib/dssi:/run/current-system/sw/lib/dssi:/etc/profiles/per-user/haras/lib/dssi:/home/haras/.dssi
EDITOR=/nix/store/ffjd8zv3cidq0yw2aj8avqcjw0xhjf81-helix-23.10/bin/hx
FILE_PWD=/home/haras/.cache/starship
GBM_BACKEND=nvidia-drm
GDK_BACKEND=wayland,x11
GIO_EXTRA_MODULES=/nix/store/wisq3m5yfa7drykhh0a9054j2xvsj4vg-gvfs-1.52.2/lib/gio/modules:/nix/store/jhgjwzsjhf17x28m7q8kl0q3mg8m3a1m-dconf-0.40.0-lib/lib/gio/modules
GNUPGHOME=/home/haras/.gnupg
GPG_TTY=/dev/pts/0
GREETD_SOCK=/run/greetd-1504.sock
GTK2_RC_FILES=/home/haras/.config/gtk-2.0/settings.ini
GTK_A11Y=none
GTK_PATH=/home/haras/.nix-profile/lib/gtk-2.0:/home/haras/.nix-profile/lib/gtk-3.0:/home/haras/.nix-profile/lib/gtk-4.0:/nix/profile/lib/gtk-2.0:/nix/profile/lib/gtk-3.0:/nix/profile/lib/gtk-4.0:/home/haras/.local/state/nix/profile/lib/gtk-2.0:/home/haras/.local/state/nix/profile/lib/gtk-3.0:/home/haras/.local/state/nix/profile/lib/gtk-4.0:/etc/profiles/per-user/haras/lib/gtk-2.0:/etc/profiles/per-user/haras/lib/gtk-3.0:/etc/profiles/per-user/haras/lib/gtk-4.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-4.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0:/run/current-system/sw/lib/gtk-4.0
GTK_USE_PORTAL=1
HOME=/home/haras
HYPRLAND_CMD=/nix/store/4a93v16w2x24k0ml00mx199mcq5zlkk6-hyprland-0.36.0/bin/Hyprland
HYPRLAND_INSTANCE_SIGNATURE=v0.36.0_1711366452
INFOPATH=/home/haras/.nix-profile/info:/home/haras/.nix-profile/share/info:/nix/profile/info:/nix/profile/share/info:/home/haras/.local/state/nix/profile/info:/home/haras/.local/state/nix/profile/share/info:/etc/profiles/per-user/haras/info:/etc/profiles/per-user/haras/share/info:/nix/var/nix/profiles/default/info:/nix/var/nix/profiles/default/share/info:/run/current-system/sw/info:/run/current-system/sw/share/info
KITTY_INSTALLATION_DIR=/nix/store/c1d0bgq6whz4khqxncmqikpdsxmr1szw-kitty-0.32.2/lib/kitty
KITTY_PID=7171
KITTY_PUBLIC_KEY=1:@YmRMwuldpECh4;(IU{2Pxm^Bno>M3f-MfTPI1|H
KITTY_WINDOW_ID=1
LADSPA_PATH=/home/haras/.nix-profile/lib/ladspa:/run/current-system/sw/lib/ladspa:/etc/profiles/per-user/haras/lib/ladspa:/home/haras/.ladspa
LANG=en_US.UTF-8
LAST_EXIT_CODE=0
LD_LIBRARY_PATH=/nix/store/v57qh3ziiq3mzg5q937pkv1g0mqpi20b-pipewire-1.0.3-jack/lib
LESSKEYIN_SYSTEM=/nix/store/v5x2nsxhaszpkqckvvlkgpf0idy93iwb-lessconfig
LESSOPEN=|/nix/store/0m37plpfadr7l63mw546az2p4mm1xanv-lesspipe-2.11/bin/lesspipe.sh %s
LIBEXEC_PATH=/home/haras/.nix-profile/libexec:/nix/profile/libexec:/home/haras/.local/state/nix/profile/libexec:/etc/profiles/per-user/haras/libexec:/nix/var/nix/profiles/default/libexec:/run/current-system/sw/libexec
LIBVA_DRIVER_NAME=nvidia
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive
LOCALE_ARCHIVE_2_27=/nix/store/3pd6pf95h3fsgq8w0wj4nv7s9fn98zyp-glibc-locales-2.38-44/lib/locale/locale-archive
LOCATE_PATH=/var/cache/locatedb
LOGNAME=haras
LS_COLORS=*~=0;38;2;123;109;105:bd=1;38;2;243;201;223;48;2;0;0;0:ca=0:cd=1;38;2;243;201;223;48;2;0;0;0:di=0;38;2;117;18;29:do=1;38;2;210;43;73;48;2;0;0;0:ex=0;38;2;222;137;194:fi=0;38;2;231;226;228:ln=0;38;2;236;169;204:mh=0:mi=0;38;2;173;22;42;48;2;0;0;0:no=0;38;2;231;226;228:or=1;38;2;173;22;42;48;2;0;0;0:ow=0;38;2;117;18;29;48;2;222;137;194:pi=0;38;2;243;201;223;48;2;0;0;0:rs=0;38;2;208;86;61:sg=0;38;2;0;0;0;48;2;243;201;223:so=1;38;2;210;43;73;48;2;0;0;0:st=0;38;2;231;226;228;48;2;117;18;29:su=0;38;2;231;226;228;48;2;173;22;42:tw=0;38;2;0;0;0;48;2;222;137;194:*.a=0;38;2;222;137;194:*.c=0;38;2;208;86;61:*.d=0;38;2;208;86;61:*.h=0;38;2;208;86;61:*.m=0;38;2;208;86;61:*.o=0;38;2;123;109;105:*.p=0;38;2;208;86;61:*.r=0;38;2;208;86;61:*.t=0;38;2;208;86;61:*.z=1;38;2;173;22;42:*.7z=1;38;2;173;22;42:*.as=0;38;2;208;86;61:*.bc=0;38;2;123;109;105:*.bz=1;38;2;173;22;42:*.cc=0;38;2;208;86;61:*.cp=0;38;2;208;86;61:*.cr=0;38;2;208;86;61:*.cs=0;38;2;208;86;61:*.di=0;38;2;208;86;61:*.el=0;38;2;208;86;61:*.ex=0;38;2;208;86;61:*.fs=0;38;2;208;86;61:*.go=0;38;2;208;86;61:*.gv=0;38;2;208;86;61:*.gz=1;38;2;173;22;42:*.hh=0;38;2;208;86;61:*.hi=0;38;2;123;109;105:*.hs=0;38;2;208;86;61:*.jl=0;38;2;208;86;61:*.js=0;38;2;208;86;61:*.ko=0;38;2;222;137;194:*.kt=0;38;2;208;86;61:*.la=0;38;2;123;109;105:*.ll=0;38;2;208;86;61:*.lo=0;38;2;123;109;105:*.md=0;38;2;208;86;61:*.ml=0;38;2;208;86;61:*.mn=0;38;2;208;86;61:*.nb=0;38;2;208;86;61:*.pl=0;38;2;208;86;61:*.pm=0;38;2;208;86;61:*.pp=0;38;2;208;86;61:*.ps=0;38;2;208;86;61:*.py=0;38;2;208;86;61:*.rb=0;38;2;208;86;61:*.rm=1;38;2;208;86;61:*.rs=0;38;2;208;86;61:*.sh=0;38;2;208;86;61:*.so=0;38;2;222;137;194:*.td=0;38;2;208;86;61:*.ts=0;38;2;208;86;61:*.ui=0;38;2;208;86;61:*.vb=0;38;2;208;86;61:*.wv=0;38;2;236;169;204:*.xz=1;38;2;173;22;42:*.aif=0;38;2;236;169;204:*.ape=0;38;2;236;169;204:*.apk=1;38;2;173;22;42:*.arj=1;38;2;173;22;42:*.asa=0;38;2;208;86;61:*.aux=0;38;2;123;109;105:*.avi=1;38;2;208;86;61:*.awk=0;38;2;208;86;61:*.bag=1;38;2;173;22;42:*.bak=0;38;2;123;109;105:*.bat=0;38;2;222;137;194:*.bbl=0;38;2;123;109;105:*.bcf=0;38;2;123;109;105:*.bib=0;38;2;208;86;61:*.bin=1;38;2;173;22;42:*.blg=0;38;2;123;109;105:*.bmp=0;38;2;210;43;73:*.bsh=0;38;2;208;86;61:*.bst=0;38;2;208;86;61:*.bz2=1;38;2;173;22;42:*.c++=0;38;2;208;86;61:*.cfg=0;38;2;208;86;61:*.cgi=0;38;2;208;86;61:*.clj=0;38;2;208;86;61:*.com=0;38;2;222;137;194:*.cpp=0;38;2;208;86;61:*.css=0;38;2;208;86;61:*.csv=0;38;2;208;86;61:*.csx=0;38;2;208;86;61:*.cxx=0;38;2;208;86;61:*.deb=1;38;2;173;22;42:*.def=0;38;2;208;86;61:*.dll=0;38;2;222;137;194:*.dmg=1;38;2;173;22;42:*.doc=0;38;2;208;86;61:*.dot=0;38;2;208;86;61:*.dox=0;38;2;208;86;61:*.dpr=0;38;2;208;86;61:*.elc=0;38;2;208;86;61:*.elm=0;38;2;208;86;61:*.epp=0;38;2;208;86;61:*.eps=0;38;2;210;43;73:*.erl=0;38;2;208;86;61:*.exe=0;38;2;222;137;194:*.exs=0;38;2;208;86;61:*.fls=0;38;2;123;109;105:*.flv=1;38;2;208;86;61:*.fnt=0;38;2;208;86;61:*.fon=0;38;2;208;86;61:*.fsi=0;38;2;208;86;61:*.fsx=0;38;2;208;86;61:*.gif=0;38;2;210;43;73:*.git=0;38;2;123;109;105:*.gvy=0;38;2;208;86;61:*.h++=0;38;2;208;86;61:*.hpp=0;38;2;208;86;61:*.htc=0;38;2;208;86;61:*.htm=0;38;2;208;86;61:*.hxx=0;38;2;208;86;61:*.ico=0;38;2;210;43;73:*.ics=0;38;2;208;86;61:*.idx=0;38;2;123;109;105:*.ilg=0;38;2;123;109;105:*.img=1;38;2;173;22;42:*.inc=0;38;2;208;86;61:*.ind=0;38;2;123;109;105:*.ini=0;38;2;208;86;61:*.inl=0;38;2;208;86;61:*.ipp=0;38;2;208;86;61:*.iso=1;38;2;173;22;42:*.jar=1;38;2;173;22;42:*.jpg=0;38;2;210;43;73:*.kex=0;38;2;208;86;61:*.kts=0;38;2;208;86;61:*.log=0;38;2;123;109;105:*.ltx=0;38;2;208;86;61:*.lua=0;38;2;208;86;61:*.m3u=0;38;2;236;169;204:*.m4a=0;38;2;236;169;204:*.m4v=1;38;2;208;86;61:*.mid=0;38;2;236;169;204:*.mir=0;38;2;208;86;61:*.mkv=1;38;2;208;86;61:*.mli=0;38;2;208;86;61:*.mov=1;38;2;208;86;61:*.mp3=0;38;2;236;169;204:*.mp4=1;38;2;208;86;61:*.mpg=1;38;2;208;86;61:*.nix=0;38;2;208;86;61:*.odp=0;38;2;208;86;61:*.ods=0;38;2;208;86;61:*.odt=0;38;2;208;86;61:*.ogg=0;38;2;236;169;204:*.org=0;38;2;208;86;61:*.otf=0;38;2;208;86;61:*.out=0;38;2;123;109;105:*.pas=0;38;2;208;86;61:*.pbm=0;38;2;210;43;73:*.pdf=0;38;2;208;86;61:*.pgm=0;38;2;210;43;73:*.php=0;38;2;208;86;61:*.pid=0;38;2;123;109;105:*.pkg=1;38;2;173;22;42:*.png=0;38;2;210;43;73:*.pod=0;38;2;208;86;61:*.ppm=0;38;2;210;43;73:*.pps=0;38;2;208;86;61:*.ppt=0;38;2;208;86;61:*.pro=0;38;2;208;86;61:*.ps1=0;38;2;208;86;61:*.psd=0;38;2;210;43;73:*.pyc=0;38;2;123;109;105:*.pyd=0;38;2;123;109;105:*.pyo=0;38;2;123;109;105:*.rar=1;38;2;173;22;42:*.rpm=1;38;2;173;22;42:*.rst=0;38;2;208;86;61:*.rtf=0;38;2;208;86;61:*.sbt=0;38;2;208;86;61:*.sql=0;38;2;208;86;61:*.sty=0;38;2;123;109;105:*.svg=0;38;2;210;43;73:*.swf=1;38;2;208;86;61:*.swp=0;38;2;123;109;105:*.sxi=0;38;2;208;86;61:*.sxw=0;38;2;208;86;61:*.tar=1;38;2;173;22;42:*.tbz=1;38;2;173;22;42:*.tcl=0;38;2;208;86;61:*.tex=0;38;2;208;86;61:*.tgz=1;38;2;173;22;42:*.tif=0;38;2;210;43;73:*.tml=0;38;2;208;86;61:*.tmp=0;38;2;123;109;105:*.toc=0;38;2;123;109;105:*.tsx=0;38;2;208;86;61:*.ttf=0;38;2;208;86;61:*.txt=0;38;2;208;86;61:*.vcd=1;38;2;173;22;42:*.vim=0;38;2;208;86;61:*.vob=1;38;2;208;86;61:*.wav=0;38;2;236;169;204:*.wma=0;38;2;236;169;204:*.wmv=1;38;2;208;86;61:*.xcf=0;38;2;210;43;73:*.xlr=0;38;2;208;86;61:*.xls=0;38;2;208;86;61:*.xml=0;38;2;208;86;61:*.xmp=0;38;2;208;86;61:*.yml=0;38;2;208;86;61:*.zip=1;38;2;173;22;42:*.zsh=0;38;2;208;86;61:*.zst=1;38;2;173;22;42:*TODO=1;38;2;208;86;61:*hgrc=0;38;2;208;86;61:*.bash=0;38;2;208;86;61:*.conf=0;38;2;208;86;61:*.dart=0;38;2;208;86;61:*.diff=0;38;2;208;86;61:*.docx=0;38;2;208;86;61:*.epub=0;38;2;208;86;61:*.fish=0;38;2;208;86;61:*.flac=0;38;2;236;169;204:*.h264=1;38;2;208;86;61:*.hgrc=0;38;2;208;86;61:*.html=0;38;2;208;86;61:*.java=0;38;2;208;86;61:*.jpeg=0;38;2;210;43;73:*.json=0;38;2;208;86;61:*.less=0;38;2;208;86;61:*.lisp=0;38;2;208;86;61:*.lock=0;38;2;123;109;105:*.make=0;38;2;208;86;61:*.mpeg=1;38;2;208;86;61:*.opus=0;38;2;236;169;204:*.orig=0;38;2;123;109;105:*.pptx=0;38;2;208;86;61:*.psd1=0;38;2;208;86;61:*.psm1=0;38;2;208;86;61:*.purs=0;38;2;208;86;61:*.rlib=0;38;2;123;109;105:*.sass=0;38;2;208;86;61:*.scss=0;38;2;208;86;61:*.tbz2=1;38;2;173;22;42:*.tiff=0;38;2;210;43;73:*.toml=0;38;2;208;86;61:*.webm=1;38;2;208;86;61:*.webp=0;38;2;210;43;73:*.woff=0;38;2;208;86;61:*.xbps=1;38;2;173;22;42:*.xlsx=0;38;2;208;86;61:*.yaml=0;38;2;208;86;61:*.cabal=0;38;2;208;86;61:*.cache=0;38;2;123;109;105:*.class=0;38;2;123;109;105:*.cmake=0;38;2;208;86;61:*.dyn_o=0;38;2;123;109;105:*.ipynb=0;38;2;208;86;61:*.mdown=0;38;2;208;86;61:*.patch=0;38;2;208;86;61:*.scala=0;38;2;208;86;61:*.shtml=0;38;2;208;86;61:*.swift=0;38;2;208;86;61:*.toast=1;38;2;173;22;42:*.xhtml=0;38;2;208;86;61:*README=0;38;2;208;86;61:*passwd=0;38;2;208;86;61:*shadow=0;38;2;208;86;61:*.config=0;38;2;208;86;61:*.dyn_hi=0;38;2;123;109;105:*.flake8=0;38;2;208;86;61:*.gradle=0;38;2;208;86;61:*.groovy=0;38;2;208;86;61:*.ignore=0;38;2;208;86;61:*.matlab=0;38;2;208;86;61:*COPYING=0;38;2;208;86;61:*INSTALL=0;38;2;208;86;61:*LICENSE=0;38;2;208;86;61:*TODO.md=1;38;2;208;86;61:*.desktop=0;38;2;208;86;61:*.gemspec=0;38;2;208;86;61:*Doxyfile=0;38;2;208;86;61:*Makefile=0;38;2;208;86;61:*TODO.txt=1;38;2;208;86;61:*setup.py=0;38;2;208;86;61:*.DS_Store=0;38;2;123;109;105:*.cmake.in=0;38;2;208;86;61:*.fdignore=0;38;2;208;86;61:*.kdevelop=0;38;2;208;86;61:*.markdown=0;38;2;208;86;61:*.rgignore=0;38;2;208;86;61:*COPYRIGHT=0;38;2;208;86;61:*README.md=0;38;2;208;86;61:*configure=0;38;2;208;86;61:*.gitconfig=0;38;2;208;86;61:*.gitignore=0;38;2;208;86;61:*.localized=0;38;2;123;109;105:*.scons_opt=0;38;2;123;109;105:*CODEOWNERS=0;38;2;208;86;61:*Dockerfile=0;38;2;208;86;61:*INSTALL.md=0;38;2;208;86;61:*README.txt=0;38;2;208;86;61:*SConscript=0;38;2;208;86;61:*SConstruct=0;38;2;208;86;61:*.gitmodules=0;38;2;208;86;61:*.synctex.gz=0;38;2;123;109;105:*.travis.yml=0;38;2;208;86;61:*INSTALL.txt=0;38;2;208;86;61:*LICENSE-MIT=0;38;2;208;86;61:*MANIFEST.in=0;38;2;208;86;61:*Makefile.am=0;38;2;208;86;61:*Makefile.in=0;38;2;123;109;105:*.applescript=0;38;2;208;86;61:*.fdb_latexmk=0;38;2;123;109;105:*CONTRIBUTORS=0;38;2;208;86;61:*appveyor.yml=0;38;2;208;86;61:*configure.ac=0;38;2;208;86;61:*.clang-format=0;38;2;208;86;61:*.gitattributes=0;38;2;208;86;61:*.gitlab-ci.yml=0;38;2;208;86;61:*CMakeCache.txt=0;38;2;123;109;105:*CMakeLists.txt=0;38;2;208;86;61:*LICENSE-APACHE=0;38;2;208;86;61:*CONTRIBUTORS.md=0;38;2;208;86;61:*.sconsign.dblite=0;38;2;123;109;105:*CONTRIBUTORS.txt=0;38;2;208;86;61:*requirements.txt=0;38;2;208;86;61:*package-lock.json=0;38;2;123;109;105:*.CFUserTextEncoding=0;38;2;123;109;105
LV2_PATH=/home/haras/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2:/etc/profiles/per-user/haras/lib/lv2:/home/haras/.lv2
LXVST_PATH=/home/haras/.nix-profile/lib/lxvst:/run/current-system/sw/lib/lxvst:/etc/profiles/per-user/haras/lib/lxvst:/home/haras/.lxvst
MANGOHUD=1
MANGOHUD_DLSYM=1
MOZ_ENABLE_WAYLAND=1
NIXOS_OZONE_WL=1
NIXOS_XDG_OPEN_USE_PORTAL=1
NIXPKGS_CONFIG=/etc/nix/nixpkgs-config.nix
NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels
NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/haras /home/haras/.local/state/nix/profile /nix/profile /home/haras/.nix-profile
NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/haras
NIX_XDG_DESKTOP_PORTAL_DIR=/run/current-system/sw/share/xdg-desktop-portal/portals
NO_AT_BRIDGE=1
NU_LIB_DIRS=/home/haras/.config/nushell/scripts
NU_LOG_DATE_FORMAT=%Y-%m-%dT%H:%M:%S%.3f
NU_LOG_FORMAT=%ANSI_START%%DATE%|%LEVEL%|%MSG%%ANSI_STOP%
NU_PLUGIN_DIRS=/home/haras/.config/nushell/plugins
NU_VERSION=0.91.0
NVD_BACKEND=direct
PAGER=less
PATH=/nix/store/c1d0bgq6whz4khqxncmqikpdsxmr1szw-kitty-0.32.2/bin:/nix/store/62d2sb24v3hhyf33h1jwy2mwkbqi1w4q-imagemagick-7.1.1-29/bin:/nix/store/783ir4cbn5bdzlan5bk9v838z6561b45-ncurses-6.4-dev/bin:/run/wrappers/bin:/home/haras/.nix-profile/bin:/nix/profile/bin:/home/haras/.local/state/nix/profile/bin:/etc/profiles/per-user/haras/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/7hhd9smnjspppk4k6n47bkw64fdbgbrz-binutils-wrapper-2.41/bin:/nix/store/0kiwnb3xnivy9vxc19wyplarn7dby9v1-pciutils-3.11.1/bin:/nix/store/qhpw32pz39y6i30b3vrbw5fw6zv5549f-gcc-wrapper-13.2.0/bin
PROMPT_INDICATOR=
PROMPT_INDICATOR_VI_INSERT=󰞷 
PROMPT_INDICATOR_VI_NORMAL= 
PROMPT_MULTILINE_INDICATOR=∙ 
PWD=/home/haras
QTWEBKIT_PLUGIN_PATH=/home/haras/.nix-profile/lib/mozilla/plugins/:/nix/profile/lib/mozilla/plugins/:/home/haras/.local/state/nix/profile/lib/mozilla/plugins/:/etc/profiles/per-user/haras/lib/mozilla/plugins/:/nix/var/nix/profiles/default/lib/mozilla/plugins/:/run/current-system/sw/lib/mozilla/plugins/
QT_QPA_PLATFORM=wayland
QT_QPA_PLATFORMTHEME=qt5ct
QT_STYLE_OVERRIDE=kvantum
RIPGREP_CONFIG_PATH=/home/haras/.config/ripgrep/ripgreprc
SHELL=/nix/store/d4d4r674rzyf2iznb3f2zclld205ci17-bash-interactive-5.2p26/bin/bash
SHLVL=0
SSH_ASKPASS=
SSH_AUTH_SOCK=/run/user/1000/ssh-agent
STARSHIP_SESSION_KEY=Ed3jU4yzohpUJfJo
STARSHIP_SHELL=nu
TERM=xterm-kitty
TERMINFO=/nix/store/c1d0bgq6whz4khqxncmqikpdsxmr1szw-kitty-0.32.2/lib/kitty/terminfo
TERMINFO_DIRS=/home/haras/.nix-profile/share/terminfo:/nix/profile/share/terminfo:/home/haras/.local/state/nix/profile/share/terminfo:/etc/profiles/per-user/haras/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/run/current-system/sw/share/terminfo
TZDIR=/etc/zoneinfo
USER=haras
VDPAU_DRIVER=va_gl
VISUAL=/nix/store/sfargl00gj2dkcdhc523kp7railfq561-vscode-1.87.1/bin/code
VST3_PATH=/home/haras/.nix-profile/lib/vst3:/run/current-system/sw/lib/vst3:/etc/profiles/per-user/haras/lib/vst3:/home/haras/.vst3
VST_PATH=/home/haras/.nix-profile/lib/vst:/run/current-system/sw/lib/vst:/etc/profiles/per-user/haras/lib/vst:/home/haras/.vst
WAYLAND_DISPLAY=wayland-1
WLR_NO_HARDWARE_CURSORS=1
WLR_RENDERER=vulkan
XCURSOR_PATH=/home/haras/.icons:/home/haras/.local/share/icons:/home/haras/.nix-profile/share/icons:/home/haras/.nix-profile/share/pixmaps:/nix/profile/share/icons:/nix/profile/share/pixmaps:/home/haras/.local/state/nix/profile/share/icons:/home/haras/.local/state/nix/profile/share/pixmaps:/etc/profiles/per-user/haras/share/icons:/etc/profiles/per-user/haras/share/pixmaps:/nix/var/nix/profiles/default/share/icons:/nix/var/nix/profiles/default/share/pixmaps:/run/current-system/sw/share/icons:/run/current-system/sw/share/pixmaps
XCURSOR_SIZE=24
XDG_BACKEND=wayland
XDG_CACHE_HOME=/home/haras/.cache
XDG_CONFIG_DIRS=/etc/xdg:/home/haras/.nix-profile/etc/xdg:/nix/profile/etc/xdg:/home/haras/.local/state/nix/profile/etc/xdg:/etc/profiles/per-user/haras/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
XDG_CONFIG_HOME=/home/haras/.config
XDG_CURRENT_DESKTOP=Hyprland
XDG_DATA_DIRS=/nix/store/401xs64x6wp5bip6g4dm15529nlljkyd-network-manager-applet-1.36.0/share:/nix/store/jw8qsr0wsv5q2ca23i4y87a6dbgbxjhw-desktops/share:/home/haras/.nix-profile/share:/nix/profile/share:/home/haras/.local/state/nix/profile/share:/etc/profiles/per-user/haras/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
XDG_DATA_HOME=/home/haras/.local/share
XDG_DESKTOP_DIR=/home/haras/desktop
XDG_DOCUMENTS_DIR=/home/haras/documents
XDG_DOWNLOAD_DIR=/home/haras/download
XDG_MUSIC_DIR=/home/haras/music
XDG_PICTURES_DIR=/home/haras/pictures
XDG_PUBLICSHARE_DIR=/home/haras/public
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=Hyprland
XDG_SESSION_ID=3
XDG_SESSION_TYPE=wayland
XDG_STATE_HOME=/home/haras/.local/state
XDG_TEMPLATES_DIR=/home/haras/templates
XDG_VIDEOS_DIR=/home/haras/videos
XDG_VTNR=1
_JAVA_AWT_WM_NONREPARENTING=1
__ETC_PROFILE_DONE=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
__GL_GSYNC_ALLOWED=1
__GL_VRR_ALLOWED=1
__HM_SESS_VARS_SOURCED=1
__NIXOS_SET_ENVIRONMENT_DONE=1

hyprctl --systeminfo:

Hyprland, built from branch  at commit v0.36.0  ().
Date: 2024-02-05
Tag: 

flags: (if any)

System Information:
System name: Linux
Node name: hearth
Release: 6.8.0-zen1
Version: #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980

GPU information: 
29:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] [10de:2504] (rev a1) (prog-if 00 [VGA controller])

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240312.0ad13a6"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

plugins:

nvidia-smi:

Mon Mar 25 12:43:43 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.154.05             Driver Version: 535.154.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060        Off | 00000000:29:00.0  On |                  N/A |
|  0%   36C    P8              15W / 170W |    495MiB / 12288MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1969      G   ...5zlkk6-hyprland-0.36.0/bin/Hyprland      125MiB |
|    0   N/A  N/A      3911      G   Xwayland                                      2MiB |
|    0   N/A  N/A      4015      G   ...gm7-firefox-bin-123.0.1/bin/firefox        0MiB |
|    0   N/A  N/A      7171      G   ...ikpdsxmr1szw-kitty-0.32.2/bin/kitty       34MiB |
+---------------------------------------------------------------------------------------+
mitelg commented 5 months ago

same issue for me on Ubuntu with Wayland

Torwalt commented 4 months ago

Not sure if this will help you, but it worked for me. I have the same setup as you.

https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/99#issuecomment-1731390092

also, https://www.reddit.com/r/hyprland/comments/16p6iyj/screen_sharing_nvidia_wayland_a_heads_up/

you need to add to your hyprland monitor config bitdepth,10 at the end.

no-mood commented 3 months ago

Not sure if this will help you, but it worked for me. I have the same setup as you.

hyprwm/xdg-desktop-portal-hyprland#99 (comment)

also, https://www.reddit.com/r/hyprland/comments/16p6iyj/screen_sharing_nvidia_wayland_a_heads_up/

you need to add to your hyprland monitor config bitdepth,10 at the end.

Thank you so much, adding bitdepth,10 finally made it work EDIT: should the original issue be reopened?

SpecialAro commented 3 months ago

Hello @haras-unicorn and thank you for logging this issue.

I recently made several changes to how Ferdium handles screen share. These changes includes some new functionality on Wayland.

Would you be able to test the latest nightly behavior and see if this issue is fixed?

I think it should be fixed and, therefore, this issue should be closed.

Thank you very much!

haras-unicorn commented 3 months ago

Hello @haras-unicorn and thank you for logging this issue.

I recently made several changes to how Ferdium handles screen share. These changes includes some new functionality on Wayland.

Would you be able to test the latest nightly behavior and see if this issue is fixed?

I think it should be fixed and, therefore, this issue should be closed.

Thank you very much!

tried 6.7.4-nightly.9 - now i dont get the picker for the screen and it just screen shares a black screen

if it's of any use here is how i tested it - basically copied the nixpkgs package and changed the version and hash:

{ mkFranzDerivation
, lib
, fetchurl
, xorg
, stdenv
, ...
}:

let
  arch = {
    x86_64-linux = "amd64";
  }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
  hash = {
    amd64-linux_hash = "sha256-RAd3XN6AIoMybImfVpm6nrw/WxpoMs6uqDiVTL/B9ys=";
  }."${arch}-linux_hash";
in
mkFranzDerivation rec {
  pname = "ferdium";
  name = "Ferdium";
  version = "6.7.4-nightly.9";
  src = fetchurl {
    url = "https://github.com/ferdium/ferdium-app/releases/download/v${version}/Ferdium-linux-${version}-${arch}.deb";
    inherit hash;
  };

  extraBuildInputs = [ xorg.libxshmfence ];

  passthru = {
    updateScript = ./update.sh;
  };

  meta = with lib; {
    description = "All your services in one place built by the community";
    homepage = "https://ferdium.org/";
    license = licenses.asl20;
    maintainers = with maintainers; [ magnouvean ];
    platforms = [ "x86_64-linux" ];
    hydraPlatforms = [ ];
  };
}

I wrap this package with the following:

{ nixpkgs, pkgs, ... }:

# FIXME: screen sharing

# NOTE: outlook - Self Hosted at https://outlook.office.com/mail/
# NOTE: WebRTC handling - set share all IPs so discord WebRTC works
# TODO: like with chromium?
# TODO: hardware related stuff elsewhere

let
  ferdium = pkgs.symlinkJoin {
    name = "ferdium";
    paths = [
      (pkgs.callPackage ./ferdium.nix {
        mkFranzDerivation = pkgs.callPackage
          "${nixpkgs}/pkgs/applications/networking/instant-messengers/franz/generic.nix"
          { };
      })
    ];
    buildInputs = [ pkgs.makeWrapper ];
    postBuild = ''
      wrapProgram $out/bin/ferdium \
        --append-flags --enable-features=WebRTCPipeWireCapturer \
        --append-flags --enable-features=UseOzonePlatform \
        --append-flags --ozone-platform-hint=auto
    '';
  };
in
{
  shared = {
    dot = {
      desktopEnvironment.sessionStartup = [
        "${ferdium}/bin/ferdium"
      ];
    };
  };

  home.shared = {
    home.packages = [
      ferdium
    ];
  };
}

most important part is the flags:

--enable-features=WebRTCPipeWireCapturer
--enable-features=UseOzonePlatform
--ozone-platform-hint=auto

EDIT:

confirmation that it is that version

image

haras-unicorn commented 3 months ago

Not sure if this will help you, but it worked for me. I have the same setup as you.

hyprwm/xdg-desktop-portal-hyprland#99 (comment)

also, https://www.reddit.com/r/hyprland/comments/16p6iyj/screen_sharing_nvidia_wayland_a_heads_up/

you need to add to your hyprland monitor config bitdepth,10 at the end.

tried it but didn't work and borked some other apps

tried it again with new version as well but still no good

haras-unicorn commented 3 months ago

one more thing that is notable is that in all other apps a window pops up asking me which screen/window i want to share but in ferdium it doesn't like when i try teams in chromium it does that but in ferdium it just shares a black screen with nightly or asks me to share a black screen in the previous version