From 5cc934707eb6e56c8a7f5356fcf6cf2447b7c5ca Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Sat, 1 Mar 2025 07:05:48 +0000 Subject: [PATCH] switch-to-configuration-ng: increase dbus timeout to 10s In certain cases, systemd might take more than 5 seconds to reply through dbus, causing the switch to appear to fail even though it succeeded. This commit increases the timeout to 10 seconds, which should make it more reliable. Additionally, the timeout for the login dbus was also increased for consistency. Fix #378535 --- pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs index 64fc71e85aed..8baf5924a7db 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs +++ b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs @@ -892,12 +892,12 @@ fn new_dbus_proxies( conn.with_proxy( "org.freedesktop.systemd1", "/org/freedesktop/systemd1", - Duration::from_millis(5000), + Duration::from_millis(10000), ), conn.with_proxy( "org.freedesktop.login1", "/org/freedesktop/login1", - Duration::from_millis(5000), + Duration::from_millis(10000), ), ) }