You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search now uses awk to parse the local Packages database and filters
by GUI sections (graphics, editors, x11, gnome, kde, games, video,
sound, net, web, mail, office, utils). Excludes lib/dev/dbg/doc
packages. Featured list updated with more popular desktop apps.
if (!query ||query.trim().length<2) { storeResults = []; return; }
105
109
storeLoading =true;
106
-
helperExec("apt-cache search '"+query.trim() +"' 2>/dev/null | head -50", function(output) {
110
+
// Search by section — only show GUI apps (graphics, editors, x11, gnome, kde, games, video, sound, net, web, mail, office, utils)
111
+
var safeQuery =query.trim().replace(/'/g, "");
112
+
var cmd ="awk -v query='"+ safeQuery +"' '"+
113
+
"BEGIN { IGNORECASE=1 } "+
114
+
"/^Package:/ { p=$2; s=\"\"; d=\"\" } "+
115
+
"/^Section:/ { s=$2 } "+
116
+
"/^Description:/ { "+
117
+
" d=substr($0, 14); "+
118
+
" if (p && (p ~ query || d ~ query) && s ~ /(graphics|editors|x11|gnome|kde|xfce|video|sound|games|net|web|mail|office|utils|misc)/ && p !~ /^(lib|python[23]?-|gir[0-9]|r-cran|golang-)/ && p !~ /-(dev|dbg|doc|data)$/) { "+
119
+
" print p \" - \" d "+
120
+
" } "+
121
+
"} "+
122
+
"' /var/lib/apt/lists/*_Packages 2>/dev/null | head -40";
123
+
helperExec(cmd, function(output) {
107
124
storeLoading =false;
108
125
if (!output ||output.trim().length===0) { storeResults = []; return; }
0 commit comments