From 47a3549cb2dfa165bd20392bd186ded861c7b61b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:56:47 +0100 Subject: [PATCH] chore(deps): update dependency tmds.dbus.protocol to 0.90.0 (#3542) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency tmds.dbus.protocol to 0.90.0 * Adapt to breaking changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ɓukasz Domeradzki --- ArchiSteamFarm/Core/OS.cs | 14 ++++---------- Directory.Packages.props | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ArchiSteamFarm/Core/OS.cs b/ArchiSteamFarm/Core/OS.cs index 7790aa9b7..b8423a8ac 100644 --- a/ArchiSteamFarm/Core/OS.cs +++ b/ArchiSteamFarm/Core/OS.cs @@ -283,7 +283,7 @@ internal static class OS { } // Docs: https://systemd.io/INHIBITOR_LOCKS - string? systemAddress = Address.System; + string? systemAddress = DBusAddress.System; if (string.IsNullOrEmpty(systemAddress)) { ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(systemAddress))); @@ -291,11 +291,11 @@ internal static class OS { return; } - using Connection connection = new(systemAddress); + using DBusConnection connection = new(systemAddress); try { await connection.ConnectAsync().ConfigureAwait(false); - } catch (ConnectException e) { + } catch (DBusConnectionException e) { // Possible if no DBus is available at all ASF.ArchiLogger.LogGenericDebuggingException(e); ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies); @@ -336,16 +336,10 @@ internal static class OS { return reader.ReadHandle(); } ).ConfigureAwait(false); - } catch (DBusException e) { + } catch (DBusMessageException e) { // Possible if login manager does not support inhibit, although that should be super rare ASF.ArchiLogger.LogGenericDebuggingException(e); ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies); - - return; - } - - if (InhibitLock == null) { - ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(InhibitLock))); } } diff --git a/Directory.Packages.props b/Directory.Packages.props index 32a11bc04..7311c5e62 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -21,6 +21,6 @@ - +