From 51843de7b44416692772314c8fd526074cf105aa Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Feb 2021 15:35:29 +0000 Subject: [PATCH] Avoid errors from dbus --- roles/home-cli/files/shrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index c8469e5..0b00259 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -64,7 +64,8 @@ acctsvclang=$(dbus-send \ --dest=org.freedesktop.Accounts \ --type=method_call \ /org/freedesktop/Accounts \ - org.freedesktop.Accounts.FindUserById int64:$(id -u)) \ + org.freedesktop.Accounts.FindUserById int64:$(id -u) \ + 2>/dev/null) \ org.freedesktop.DBus.Properties.Get \ string:org.freedesktop.Accounts.User \ string:Language \