Skip to content

Commit faab221

Browse files
disable zen only
1 parent 82bf0d0 commit faab221

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/core/hooks/useOpenWithMenuItems/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default (fileDetails?: FileDetail, filters?: FileFilter[]): IContextualMe
222222
key: `open-with-${name}`,
223223
text: name,
224224
title: `Open files with ${name}`,
225-
disabled: (!filters && !fileDetails) || !fileDetails?.localPath,
225+
disabled: (!filters && !fileDetails) || app.filePath.toLowerCase().includes("zen"),
226226
onClick() {
227227
if (filters) {
228228
dispatch(interaction.actions.openWith(app, filters));

packages/core/state/interaction/logics.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { isEmpty, sumBy, throttle, uniq, uniqueId } from "lodash";
2-
import { isAbsolute } from "path";
32
import { AnyAction } from "redux";
43
import { createLogic } from "redux-logic";
54

@@ -491,11 +490,10 @@ const openWithLogic = createLogic({
491490
filesToOpen = await fileSelection.fetchAllDetails();
492491
}
493492

494-
// Determine if exePath is local
495-
const isLocalExecutable = isAbsolute(exePath);
496493
const filePaths = await Promise.all(
494+
// Default to local path for desktop apps
497495
filesToOpen.map((file) => {
498-
const filePath = isLocalExecutable ? file.localPath ?? file.path : file.path;
496+
const filePath = file.localPath ?? file.path;
499497
return executionEnvService.formatPathForHost(filePath);
500498
})
501499
);

0 commit comments

Comments
 (0)