Skip to content

Commit

Permalink
Add fallback for rolling release linux distros
Browse files Browse the repository at this point in the history
  • Loading branch information
vpkopylov authored and cachapa committed Mar 3, 2024
1 parent fb03699 commit 6a55a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/build_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BuildInfo {
else if (_p.isLinux) {
final info = await DeviceInfoPlugin().linuxInfo;
deviceModel = info.name;
platformVersion = info.versionId!;
platformVersion = info.versionId ?? _p.version;
} else if (_p.isMacOS) {
final info = await DeviceInfoPlugin().macOsInfo;
deviceModel = info.model;
Expand Down

0 comments on commit 6a55a90

Please sign in to comment.