readme: add dbus-update-activation-environment command

Add a dbus-update-activation-environment invocation that users can
add to their config file. This should work for most users, assuming
Sway, systemd, and D-Bus activation.

The --systemd flag also imports the variables to the systemd user
session.
This commit is contained in:
Simon Ser 2021-05-03 15:34:22 +02:00 committed by danshick
parent 835a928bd4
commit 884a2e808e
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ ninja -C build install
## Running
Make sure `XDG_CURRENT_DESKTOP=sway` is set.
Make sure `XDG_CURRENT_DESKTOP` is set. Make sure `WAYLAND_DISPLAY` and
`XDG_CURRENT_DESKTOP` are imported into D-Bus. If you're running Sway, this
can be added to your config file:
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
When correctly installed, xdg-desktop-portal should automatically invoke
xdg-desktop-portal-wlr when needed.