From 884a2e808e390a75137d68efe14521e2db38bc8e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 3 May 2021 15:34:22 +0200 Subject: [PATCH] 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. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d2bd022..9cbe327 100644 --- a/README.md +++ b/README.md @@ -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.