mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Search executables as well
We want "gedit" to find GEdit, which doesn't contain its name in either the name or description. svn path=/trunk/; revision=85
This commit is contained in:
parent
258834ed8f
commit
cedab08018
1 changed files with 9 additions and 4 deletions
|
|
@ -203,12 +203,17 @@ AppDisplay.prototype = {
|
|||
if (search == null || search == '')
|
||||
return true;
|
||||
let name = appinfo.get_name().toLowerCase();
|
||||
let description = appinfo.get_description();
|
||||
if (description) description = description.toLowerCase();
|
||||
if (name.indexOf(search) >= 0)
|
||||
return true;
|
||||
if (description && description.indexOf(search) >= 0)
|
||||
return true;
|
||||
let description = appinfo.get_description();
|
||||
if (description) {
|
||||
description = description.toLowerCase();
|
||||
if (description.indexOf(search) >= 0)
|
||||
return true;
|
||||
}
|
||||
let exec = appinfo.get_executable().toLowerCase();
|
||||
if (exec.indexOf(search) >= 0)
|
||||
return true;
|
||||
return false;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue