mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-15 22:10:30 +00:00
Use more user-friendly warning
This commit is contained in:
@@ -298,7 +298,7 @@ internal static class OS {
|
||||
} catch (ConnectException e) {
|
||||
// Possible if no DBus is available at all
|
||||
ASF.ArchiLogger.LogGenericDebuggingException(e);
|
||||
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
|
||||
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -339,7 +339,7 @@ internal static class OS {
|
||||
} catch (DBusException e) {
|
||||
// Possible if login manager does not support inhibit, although that should be super rare
|
||||
ASF.ArchiLogger.LogGenericDebuggingException(e);
|
||||
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
|
||||
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -800,4 +800,7 @@ Process uptime: {1}</value>
|
||||
<value>Input: {0}</value>
|
||||
<comment>{0} will be replaced by text input from the user.</comment>
|
||||
</data>
|
||||
<data name="WarningNoSystemRequiredLinuxDependencies" xml:space="preserve">
|
||||
<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>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user