diff --git a/README.md b/README.md index 029dbb56..a4733e01 100644 --- a/README.md +++ b/README.md @@ -477,7 +477,8 @@ default, you must create it manually. "variants": false, "wallpapers": false }, - "showOnHover": false + "showOnHover": false, + "hiddenApps": [] }, "lock": { "recolourLogo": false diff --git a/config/LauncherConfig.qml b/config/LauncherConfig.qml index 31a1fc59..5f88ccd9 100644 --- a/config/LauncherConfig.qml +++ b/config/LauncherConfig.qml @@ -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 hiddenApps: [] property UseFuzzy useFuzzy: UseFuzzy {} property Sizes sizes: Sizes {} diff --git a/modules/launcher/services/Apps.qml b/modules/launcher/services/Apps.qml index 9f87d504..229bdaed 100644 --- a/modules/launcher/services/Apps.qml +++ b/modules/launcher/services/Apps.qml @@ -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