We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cea2492 commit 1800316Copy full SHA for 1800316
1 file changed
lib/services/updater.dart
@@ -1,3 +1,4 @@
1
+import 'package:linux_assistant/enums/distros.dart';
2
import 'package:linux_assistant/enums/softwareManagers.dart';
3
import 'package:linux_assistant/main.dart';
4
import 'package:linux_assistant/models/linux_command.dart';
@@ -16,6 +17,13 @@ class LinuxAssistantUpdater {
16
17
return false;
18
}
19
20
+ // Return false if we are running on Arch Linux and the user has it not running in flatpak.
21
+ // We are missing an update mechanism for Arch Linux at the current time.
22
+ if (!Linux.currentenvironment.runningInFlatpak &&
23
+ Linux.currentenvironment.distribution == DISTROS.ARCH) {
24
+ return false;
25
+ }
26
+
27
String newestVersion = ConfigHandler().getValueUnsafe(
28
"newest-linux-assistant-version", CURRENT_LINUX_ASSISTANT_VERSION);
29
0 commit comments