1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

feat: matugen detects flatpak installations of zenbrowser and vesktop (#1251)

* feat: matugen detects flatpak installations of zenbrowser and vesktop

* fix: add flatpak deps on precommit runner

* fix: address short circuit conditions
This commit is contained in:
Ryan Bateman
2026-01-03 11:28:39 -09:00
committed by GitHub
parent f0f2e6ef72
commit 02166a4ca5
5 changed files with 387 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"os/exec"
"slices"
"strings"
)
@@ -56,6 +57,10 @@ func FlatpakSearchBySubstring(substring string) bool {
return false
}
func AnyFlatpakExists(flatpaks ...string) bool {
return slices.ContainsFunc(flatpaks, FlatpakExists)
}
func FlatpakInstallationDir(name string) (string, error) {
if !FlatpakInPath() {
return "", errors.New("flatpak not found in PATH")