summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/Icons.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml
index e8e2bdb..5e95575 100644
--- a/utils/Icons.qml
+++ b/utils/Icons.qml
@@ -147,7 +147,10 @@ Singleton {
property string osName
function getAppIcon(name: string, fallback: string): string {
- return Quickshell.iconPath(DesktopEntries.heuristicLookup(name)?.icon, fallback);
+ const icon = DesktopEntries.heuristicLookup(name)?.icon;
+ if (fallback !== "undefined")
+ return Quickshell.iconPath(icon, fallback);
+ return Quickshell.iconPath(icon);
}
function getAppCategoryIcon(name: string, fallback: string): string {