You are not logged in.

#1 Yesterday 18:32:40

endless
Member
Registered: 2025-09-06
Posts: 27

Screen sharing not working

I logged in to my hyprland setup and I tried to screen share my screen in discord but couldn't, after searching for the problem I tried to do the same in obs and didn't work either  so i knew the problem wasn't discord's but something in the system, after searching further more I found this problem with pipewire :
[E][19:29:27.116768] mod.protocol-native | [module-protocol-:  790 lock_socket()] server 0x55584fcdfd00: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][19:29:27.117399] pw.conf      | [          conf.c:  607 load_module()] 0x55584fc9e4f0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][19:29:27.120054] default      | [      pipewire.c:  124 main()] failed to create context: Resource temporarily unavailable

I tried searching for the solutions but couldn't find something that helped me , the problem is that the sound is still working everything about it is also working the only thing that is not is the screen sharing , my screen don't show up in obs and in discord it won't let me share my screen
please help!!

Edit: I forgot to say that the services of pipewire and wireplumber are running even though I can't diable them or reload them for some unknown reason, it tells me Failed to reload pipewire.service: Unit pipewire.service not found.

Last edited by endless (Yesterday 20:26:40)

Offline

#2 Yesterday 19:45:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,888

Re: Screen sharing not working

Is this some wayland compositor? Which? Does it work on an X11 session?

Offline

#3 Yesterday 20:25:55

endless
Member
Registered: 2025-09-06
Posts: 27

Re: Screen sharing not working

i searched further more and I found out that the problem wasn't in pipewire, because originally the broken screen sharing is what I intented and intend to fix,so I'll change the title.
from what I found I have a problem of xdg-desktop-portal not launching due to graphical-session.target not being activated  and therefore xdg-desktop-portable-hyprland not launching either.
I also found that the problem could be tied to me launching hyprland from sddm and the services not launching correctly due to that
I didn't search in the internet yet I just asked chatgpt till i found this, if there is a solution you know i am glad to hear it .

edit: I have this two to launch in my startup :
    hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE")
    hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")

Last edited by endless (Yesterday 20:30:25)

Offline

#4 Yesterday 21:23:22

tekstryder
Member
Registered: 2013-02-14
Posts: 532

Re: Screen sharing not working

endless wrote:

iI have this two to launch in my startup :
    hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE")
    hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")

Don't do any of that.

See:

https://github.com/hyprwm/Hyprland/discussions/15072
https://gitlab.archlinux.org/archlinux/ … rk_items/4
https://bbs.archlinux.org/viewtopic.php … 9#p2300839

Offline

Board footer

Powered by FluxBB