Skip to content

Commit b874ba7

Browse files
committed
Fork osx-find-exec, so we can find terminals without spotlight
Previously, if spotlight wasn't enabled, every terminal just appeared to not exist. With the new forked version, if spotlight's disabled it will fall back to reading app data straight from /Applications.
1 parent 2696343 commit b874ba7

File tree

4 files changed

+117
-127
lines changed

4 files changed

+117
-127
lines changed

custom-typings/osx-find-executable.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module 'osx-find-executable' {
1+
declare module '@httptoolkit/osx-find-executable' {
22
function findExecutable(bundleId: string, callback: (error: Error | null, executablePath?: string) => void): void;
33

44
export = findExecutable;

package-lock.json

Lines changed: 114 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"bugs": "https://github.com/httptoolkit/httptoolkit-server/issues",
2727
"dependencies": {
2828
"@httptoolkit/browser-launcher": "^1.5.0",
29+
"@httptoolkit/osx-find-executable": "^1.1.0",
2930
"@oclif/command": "^1.5.4",
3031
"@oclif/config": "^1.8.8",
3132
"@oclif/plugin-help": "^2.1.3",
@@ -42,7 +43,6 @@
4243
"lodash": "^4.17.13",
4344
"mockttp": "^0.17.3",
4445
"node-gsettings-wrapper": "^0.5.0",
45-
"osx-find-executable": "^1.0.0",
4646
"rimraf": "^2.6.2",
4747
"tslib": "^1.9.3"
4848
},

src/interceptors/terminal/fresh-terminal-interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { spawn, ChildProcess, SpawnOptions } from 'child_process';
77
import * as GSettings from 'node-gsettings-wrapper';
88
import * as ensureCommandExists from 'command-exists';
99

10-
import findOsxExecutableCb = require('osx-find-executable');
10+
import findOsxExecutableCb = require('@httptoolkit/osx-find-executable');
1111
const findOsxExecutable = util.promisify(findOsxExecutableCb);
1212

1313
import { Interceptor } from '..';

0 commit comments

Comments
 (0)