From 95c184a6a787b74f08356ba819b7f6e406a5d65b Mon Sep 17 00:00:00 2001 From: Joshua Yun Date: Wed, 12 Mar 2025 03:14:47 -0500 Subject: Autostart systemctl environment for xdg portal functionality --- config.def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 6b69c1a..6a5e879 100644 --- a/config.def.h +++ b/config.def.h @@ -30,7 +30,8 @@ static int log_level = WLR_ERROR; /* Autostart */ static const char *const autostart[] = { - "wbg", "/path/to/your/image", NULL, + "dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE", NULL, + "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE", NULL, NULL /* terminate */ }; -- cgit v1.2.3