Skip to content

Commit 23f9f58

Browse files
committed
Use more user-friendly warning
1 parent f0dfbc5 commit 23f9f58

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ArchiSteamFarm/Core/OS.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private static async Task LinuxKeepSystemActive() {
298298
} catch (ConnectException e) {
299299
// Possible if no DBus is available at all
300300
ASF.ArchiLogger.LogGenericDebuggingException(e);
301-
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
301+
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
302302

303303
return;
304304
}
@@ -339,7 +339,7 @@ private static async Task LinuxKeepSystemActive() {
339339
} catch (DBusException e) {
340340
// Possible if login manager does not support inhibit, although that should be super rare
341341
ASF.ArchiLogger.LogGenericDebuggingException(e);
342-
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
342+
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
343343

344344
return;
345345
}

ArchiSteamFarm/Localization/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,4 +800,7 @@ Process uptime: {1}</value>
800800
<value>Input: {0}</value>
801801
<comment>{0} will be replaced by text input from the user.</comment>
802802
</data>
803+
<data name="WarningNoSystemRequiredLinuxDependencies" xml:space="preserve">
804+
<value>You've declared --system-required, although your OS is missing required dependencies for that feature to work. Consider installing dbus, although you can also safely ignore this warning if you do not require inhibition to work properly.</value>
805+
</data>
803806
</root>

0 commit comments

Comments
 (0)