Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiScript can only detect itself when in /Applications/ #22

Open
wildwestrom opened this issue Aug 23, 2021 · 3 comments
Open

FiScript can only detect itself when in /Applications/ #22

wildwestrom opened this issue Aug 23, 2021 · 3 comments

Comments

@wildwestrom
Copy link

I'm not sure if this is true, but it seems like the path to FiScript is hardcoded to /Applications/FiScript.app/Contents/PlugIns/FiScriptHelper.app.
Here's the error message:

Can't communicate with helper application.

Check if Helper applications exists at /Applications/FiScript.app/Contents/PlugIns/FiScriptHelper.app Helper application has been moved or deleted. Please move the helper application back or reinstall FiScript.

This is a problem, because by default I set Homebrew to install everything in ~/Applications/.

@gingerbeardman
Copy link
Contributor

Correct, it is hardcoded:

let helperAppURL = URL(fileURLWithPath: "/Applications/FiScript.app/Contents/PlugIns/FiScriptHelper.app")

@wildwestrom
Copy link
Author

wildwestrom commented Aug 24, 2021

Ok, how difficult might it be to detect the Application path and add the helper file?
I would like to help but I don't know swift or the apple APIs at all.

Edit:
I tried using Bundle.main.resourceURL in the swift repl, but it returns an error:
$R8: URL? = Failed to get the 'some' field from optional '$R8'
No idea how to begin to debug that.

@gingerbeardman
Copy link
Contributor

I'm not sure, I'll have to defer to @Mortennn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants