Fix launching root's .desktop files

by roundabout, Thursday, 16 January 2025, 07:11:40 (1737011500), pushed by roundabout, Thursday, 16 January 2025, 07:12:17 (1737011537)

Author identity: vlad <vlad.muntoiu@gmail.com>

63e7e2bd60bfd272e94187c480504237996c6f69

src/applications/__init__.py

@@ -53,7 +53,7 @@ class Provider(izvor.Provider):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    for entry, desktop_file in _get_all_menu_entries():
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        if _match_query(entry, query):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            def execute(desktop_file=desktop_file):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                            izvor.run_desktop_entry(str(desktop_file))
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                            izvor.run_desktop_entry(str(desktop_file).removeprefix("/run/host"))
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            yield {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                "name": entry.getName() or desktop_file.stem,