diff --git a/lib/services/updater.dart b/lib/services/updater.dart index 8f76743..dc7b6da 100644 --- a/lib/services/updater.dart +++ b/lib/services/updater.dart @@ -1,3 +1,4 @@ +import 'package:linux_assistant/enums/distros.dart'; import 'package:linux_assistant/enums/softwareManagers.dart'; import 'package:linux_assistant/main.dart'; import 'package:linux_assistant/models/linux_command.dart'; @@ -16,6 +17,13 @@ class LinuxAssistantUpdater { return false; } + // Return false if we are running on Arch Linux and the user has it not running in flatpak. + // We are missing an update mechanism for Arch Linux at the current time. + if (!Linux.currentenvironment.runningInFlatpak && + Linux.currentenvironment.distribution == DISTROS.ARCH) { + return false; + } + String newestVersion = ConfigHandler().getValueUnsafe( "newest-linux-assistant-version", CURRENT_LINUX_ASSISTANT_VERSION);