You are not logged in.

#1 2025-02-24 01:06:35

nvann
Member
Registered: 2024-04-04
Posts: 11

Is there a better way to import the WAYLAND_DISPLAY env var to dbus?

So, I'm using the dwl wayland compositor (wlroots), and for screensharing on wayland to work I need to set a env var every session and reset pipewire / wireplumber


dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots 

and


systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start wireplumber 

However I am wandering if there's a way to permanently set those variables so I at least don't have to restart pipewire as well, I mean, there must be some dbus or systemd config somewhere that is loaded before pipewire
If not, how is the best way to load this before I start dwl? This is how I start it currently


dbus-run-session aslstatus -s | dwl 

Last edited by nvann (2025-02-24 04:47:59)

Offline

Board footer

Powered by FluxBB