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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user