From db80f5868b24530a0e95b2f273d5d84a6860bef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zaman=20H=C3=BCseynli?= Date: Mon, 23 Feb 2026 20:59:22 +0400 Subject: [PATCH] Update environment import command in niri-session Since systemctl's import-environment support is now marked as deprecated and therefore gives a warning, I wanted to make such a correction so that the warning screen disappears, but since systemctl does not support import-environment directly anymore, I think it makes more sense to use only dbus or use systemctl in accordance with its new format. --- resources/niri-session | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/niri-session b/resources/niri-session index e0c71ffeaf..876eb06e60 100755 --- a/resources/niri-session +++ b/resources/niri-session @@ -33,7 +33,7 @@ if hash systemctl >/dev/null 2>&1; then systemctl --user reset-failed # Import the login manager environment. - systemctl --user import-environment + systemctl --user show-environment | grep -v '^_=' | cut -d= -f1 | xargs systemctl --user import-environment # DBus activation environment is independent from systemd. While most of # dbus-activated services are already using `SystemdService` directive, some