Merge pull request #2501 from openchamber/feat/linux-appimage-tray-icons-b6fc

fix(desktop): Linux AppImage tray Show/Hide/Close and system file-manager icons
This commit is contained in:
Serhii Dziupin
2026-07-29 16:22:39 +03:00
committed by GitHub
7 changed files with 384 additions and 46 deletions
@@ -24,11 +24,11 @@ type OpenInAppOptionWithFallback = OpenInAppOption & {
const withFallbackIcon = (app: OpenInAppOption): OpenInAppOptionWithFallback => ({
...app,
fallbackIconDataUrl: app.id === 'finder' && window.__OPENCHAMBER_PLATFORM__ !== 'win32'
fallbackIconDataUrl: app.id === 'finder' && window.__OPENCHAMBER_PLATFORM__ === 'darwin'
? FINDER_DEFAULT_ICON_DATA_URL
: app.id === 'terminal'
? TERMINAL_DEFAULT_ICON_DATA_URL
: undefined,
? TERMINAL_DEFAULT_ICON_DATA_URL
: undefined,
});
const AppIcon = ({
-5
View File
@@ -937,11 +937,6 @@ export const fetchDesktopInstalledApps = async (
return { apps: [], success: false, hasCache: false, isCacheStale: false };
}
// Linux desktop does not resolve installed GUI apps; skip the IPC round-trip.
if (getElectronPlatform() === 'linux') {
return { apps: [], success: true, hasCache: false, isCacheStale: false };
}
const candidate = Array.isArray(apps) ? apps.filter((value) => typeof value === 'string') : [];
if (candidate.length === 0) {
return { apps: [], success: true, hasCache: false, isCacheStale: false };