Look for applications also in subdirectories of .../applications
This is especially needed for KDE applications, which live in /usr/share/applications/kde4. Fixes QubesOS/qubes-issues#3092
This commit is contained in:
		
							parent
							
								
									abb6d23470
								
							
						
					
					
						commit
						ac97a3ca87
					
				@ -16,9 +16,11 @@ for dir in $(echo "$XDG_DATA_HOME:$XDG_DATA_DIRS" | tr : ' '); do
 | 
				
			|||||||
    if ! [ -d "$dir/applications" ]; then
 | 
					    if ! [ -d "$dir/applications" ]; then
 | 
				
			||||||
        continue
 | 
					        continue
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if [ -f "$dir/applications/$app_basename" ]; then
 | 
					    for subdir in $(find $dir/applications -type d | sort); do
 | 
				
			||||||
        exec qubes-desktop-run "$dir/applications/$app_basename"
 | 
					        if [ -f "$subdir/$app_basename" ]; then
 | 
				
			||||||
 | 
					            exec qubes-desktop-run "$subdir/$app_basename"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					    done
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
echo "applications/$app_basename not found in $XDG_DATA_HOME:$XDG_DATA_DIRS" >&2
 | 
					echo "applications/$app_basename not found in $XDG_DATA_HOME:$XDG_DATA_DIRS" >&2
 | 
				
			||||||
exit 1
 | 
					exit 1
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user