Compare commits

...

2 Commits

Author SHA1 Message Date
the-sane
2343bfb733 Improve flatpak lutris detection
Handles a scenario where both the stable and beta versions are installed
2022-11-08 21:27:08 -05:00
the-sane
464dbe47d7 Update menu sizes 2022-11-08 14:54:24 -05:00

View File

@ -157,7 +157,7 @@ max_download_items=20
# Pixels to add for each Zenity menu option # Pixels to add for each Zenity menu option
# used to dynamically determine the height of menus # used to dynamically determine the height of menus
menu_option_height="25" menu_option_height="26"
######## Bundled Files ##################################################### ######## Bundled Files #####################################################
@ -894,19 +894,15 @@ 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
} }
# Restart lutris if necessary # Restart lutris if necessary
@ -1033,7 +1029,7 @@ download_select_delete() {
# Configure the menu # Configure the menu
menu_text_zenity="Select the $download_type you want to remove:" menu_text_zenity="Select the $download_type you want to remove:"
menu_text_terminal="Select the $download_type you want to remove:" menu_text_terminal="Select the $download_type you want to remove:"
menu_text_height="65" menu_text_height="60"
goback="Return to the $download_type management menu" goback="Return to the $download_type management menu"
unset installed_items unset installed_items
unset installed_item_names unset installed_item_names
@ -1364,7 +1360,7 @@ download_select_install() {
# Configure the menu # Configure the menu
menu_text_zenity="Select the $download_type you want to install:" menu_text_zenity="Select the $download_type you want to install:"
menu_text_terminal="Select the $download_type you want to install:" menu_text_terminal="Select the $download_type you want to install:"
menu_text_height="65" menu_text_height="60"
goback="Return to the $download_type management menu" goback="Return to the $download_type management menu"
unset menu_options unset menu_options
unset menu_actions unset menu_actions