Skip to content

Commit 1800316

Browse files
committed
Disable update notification for archlinux without flatpak version
1 parent cea2492 commit 1800316

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/services/updater.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:linux_assistant/enums/distros.dart';
12
import 'package:linux_assistant/enums/softwareManagers.dart';
23
import 'package:linux_assistant/main.dart';
34
import 'package:linux_assistant/models/linux_command.dart';
@@ -16,6 +17,13 @@ class LinuxAssistantUpdater {
1617
return false;
1718
}
1819

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+
1927
String newestVersion = ConfigHandler().getValueUnsafe(
2028
"newest-linux-assistant-version", CURRENT_LINUX_ASSISTANT_VERSION);
2129

0 commit comments

Comments
 (0)