launcher: add config option for hiding applications (#568)

* feat(launcher): add config option for excluding applications from launcher

* fix(launcher): rename excludedApps to hiddenApps

* chore: add example to readme

* fix

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
This commit is contained in:
anders130 2025-09-10 13:19:26 +02:00 committed by GitHub
parent b6b2adf056
commit 58615b809e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -477,7 +477,8 @@ default, you must create it manually.
"variants": false,
"wallpapers": false
},
"showOnHover": false
"showOnHover": false,
"hiddenApps": []
},
"lock": {
"recolourLogo": false

View file

@ -10,6 +10,7 @@ JsonObject {
property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout
property int dragThreshold: 50
property bool vimKeybinds: false
property list<string> hiddenApps: []
property UseFuzzy useFuzzy: UseFuzzy {}
property Sizes sizes: Sizes {}

View file

@ -69,7 +69,7 @@ Searcher {
Variants {
id: variants
model: [...DesktopEntries.applications.values].sort((a, b) => a.name.localeCompare(b.name))
model: [...DesktopEntries.applications.values].filter(a => !Config.launcher.hiddenApps.includes(a.id)).sort((a, b) => a.name.localeCompare(b.name))
QtObject {
required property DesktopEntry modelData