[BUG] browser screen cast does not work
Describe the bug
17:08:06 home-fed systemd[3211]: Dependency failed for xdg-desktop-portal.service - Portal service. 17:08:06 home-fed systemd[3211]: xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'.
local fix:
- add this "exec-once=systemctl --user start --ignore-dependencies xdg-desktop-portal" to ~/.config/hypr/conf/hyprland.conf
Steps to reproduce
- open https://telemost.yandex.ru/
- push the button "create new meeting"
- push the button "demonstration"
Expected behavior
A window for selecting a monitor/application window for demonstration should appear.
Screenshots
No response
Distribution
Other (please specify below)
If Other, specify
Fedora Linux 44
Additional context
- Linux 7.0.6-200.fc44.x86_64
- Hyprland 0.55.1 (Wayland)
- Firefox 150.0.3
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
It’s funny that you say this because just yesterday I was tying to set up a proctoring extension in my browser for my online college classes. I had to set it all up on my windows pc so that I could stream my screen. Very invasive process I know. I hope this gets figured out in the future.
Ran into this on Arch + Hyprland 0.55.4 too and spent way too long tracking it down tbh
The issue seems to be that Hyprland never activates graphical-session.target so both xdg-desktop-portal.service and xdg-desktop-portal-hyprland.service never start that breaks screencasting everywhere for me meet, discord, OBS
Also One thing to note: fixing only xdg-desktop-portal-hyprland isn't enough I tried that first, but xdg-desktop-portal.service (the D-Bus service apps actually talk to) still failed with the same dependency issue Both needed to be started
@anikmar's --ignore-dependencies workaround works, just include both services:
exec-once = systemctl --user start --ignore-dependencies xdg-desktop-portal-hyprland.service xdg-desktop-portal.service
Tested this on my setup and it fixed the issue on boot with no manual steps afterwards
I originally went down the systemd override route (removing Requisite=/PartOf= from the units) before realizing --ignore-dependencies achieves the same thing with much less hassle
I'm making a pr here for this :p