mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-30 18:39:03 +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
|
||||
if [ -x "$(command -v lutris)" ]; then
|
||||
# Native Lutris is installed
|
||||
lutris_installed="true"
|
||||
lutris_native="true"
|
||||
fi
|
||||
|
||||
# Detect flatpak lutris
|
||||
if [ -x "$(command -v flatpak)" ]; then
|
||||
flatpak info net.lutris.Lutris >/dev/null 2>&1
|
||||
if [ "$?" -eq 0 ]; then
|
||||
if [ -x "$(command -v flatpak)" ] && flatpak list --app | grep -q Lutris; then
|
||||
lutris_installed="true"
|
||||
lutris_flatpak="true"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user