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:
@@ -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 = ({
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user