mirror of
				https://github.com/the-sane/lug-helper.git
				synced 2025-11-04 00:53:08 +00:00 
			
		
		
		
	Improve flatpak lutris detection
Handles a scenario where both the stable and beta versions are installed
This commit is contained in:
		@@ -894,19 +894,15 @@ 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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Restart lutris if necessary
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user