From c1fca467bf000a0056b18e48e13462683b405ce2 Mon Sep 17 00:00:00 2001 From: jelveh Date: Sun, 19 Jul 2026 10:52:56 -0700 Subject: [PATCH] Use bundled fallback for null app icons --- src/gui/src/UI/Dashboard/TabApps.js | 7 +- src/gui/src/icons/app-default.svg | 295 ++++++++++++++++++++++++++++ 2 files changed, 301 insertions(+), 1 deletion(-) create mode 100644 src/gui/src/icons/app-default.svg diff --git a/src/gui/src/UI/Dashboard/TabApps.js b/src/gui/src/UI/Dashboard/TabApps.js index 49dddc875..f8085d0af 100644 --- a/src/gui/src/UI/Dashboard/TabApps.js +++ b/src/gui/src/UI/Dashboard/TabApps.js @@ -71,7 +71,12 @@ function resolveTileDisplay (app) { function buildTileHtml (app) { const { title, targetLink } = resolveTileDisplay(app); - const iconUrl = app.iconUrl || window.icons['app.svg']; + // installedApps reports icon: null when an app has no icon at all; its + // iconUrl would be a wasted fetch, so use the bundled default instead. + // Strictly null — launch-list entries carry no icon key (undefined). + const iconUrl = app.icon === null + ? window.icons['app-default.svg'] + : (app.iconUrl || window.icons['app.svg']); let h = `
`; h += '
'; diff --git a/src/gui/src/icons/app-default.svg b/src/gui/src/icons/app-default.svg new file mode 100644 index 000000000..a2461f009 --- /dev/null +++ b/src/gui/src/icons/app-default.svg @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + +