Skip to content

Commit

Permalink
Disable update notification for archlinux without flatpak version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Mar 9, 2024
1 parent cea2492 commit 1800316
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/services/updater.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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);

Expand Down

0 comments on commit 1800316

Please sign in to comment.