mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-31 00:19:04 +00:00
Improve flatpak lutris detection
Handles a scenario where both the stable and beta versions are installed
This commit is contained in:
parent
464dbe47d7
commit
2343bfb733
@ -894,18 +894,14 @@ lutris_detect() {
|
|||||||
|
|
||||||
# Detect native lutris
|
# Detect native lutris
|
||||||
if [ -x "$(command -v lutris)" ]; then
|
if [ -x "$(command -v lutris)" ]; then
|
||||||
# Native Lutris is installed
|
|
||||||
lutris_installed="true"
|
lutris_installed="true"
|
||||||
lutris_native="true"
|
lutris_native="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Detect flatpak lutris
|
# Detect flatpak lutris
|
||||||
if [ -x "$(command -v flatpak)" ]; then
|
if [ -x "$(command -v flatpak)" ] && flatpak list --app | grep -q Lutris; then
|
||||||
flatpak info net.lutris.Lutris >/dev/null 2>&1
|
|
||||||
if [ "$?" -eq 0 ]; then
|
|
||||||
lutris_installed="true"
|
lutris_installed="true"
|
||||||
lutris_flatpak="true"
|
lutris_flatpak="true"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user