-
Notifications
You must be signed in to change notification settings - Fork 128
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
Cannot launch Alacritty via Phoenix #209
Comments
@mafredri Phoenix doesn’t do anything fancy to open applications other than call the API (https://github.com/kasper/phoenix/blob/master/Phoenix/PHApp.m#L55-L58). I guess the app has somehow broken the application URL? The error code doesn’t tell much more than it’s an unknown error (https://www.osstatus.com/search/results?platform=all&framework=all&search=-10810). Hard to say what could be wrong. Could you try reinstalling Alacritty? |
That's what I was afraid of, dang :/
Not really, there's no official release so I've basically just:
I've tried rebuilding, etc, but that does not help. I forgot to add this to my issue, but the Alacritty icon in the Dock tries to bounce (it jumps once) but then nothing happens (except Phoenix error). |
For now you could just run |
Yeah, that's what I'm doing now. It works OK since |
I wonder if the app doesn’t respond properly for |
I tried changing it to: |
I think this is a problem with Alacritty.
|
Spotlight and Alfred launch it ok... I wonder what they do. |
Let me know if you figure out what Alacritty is doing to cause this. |
Not to resurrect an old issue, but also seeing this issue with kitty terminal as well. Once the app is launched with spotlight or some other mechanism, it can be focused. |
@mhartington it's likely a problem with Kitty, but as a workaround you can try to focus it by launching it ( Edit: Replied without looking at what the original issue was about 🤦🏻♂️. Anyway, that's what I used to do with Alacritty before switching back to iTerm. Not sure if using |
Yeah, tried that and still no dice.
It looks like it will try to start kitty, but for what ever reason, kitty will quickly fail before it fully "launches". The same behaviour is observed with alacirtty. |
I can also reproduce with kitty. Same behavior as @mhartington . I'm getting the same error as #264.
|
Can reproduce with Key.on("k", ["alt", "shift"], function () {
const appName = "Spotify"; // set this to any application
let app = startApp(appName, { focus: true });
});
/**
* Get or launch the application with the passed in name.
* Returns undefined if the application fails to start.
* @param {string} appName the name of the application to start
* @param {{focus: boolean}} options focus determines whether or not to focus the app on launch
*/
function startApp(appName, { focus }) {
let app = App.get(appName);
if (app === undefined) {
app = App.launch(appName, { focus });
}
return app;
} |
Ok this occurs in two events. When the mainWindow is closed but the app is still open. For example clicking X on spotify leaves spotify open but closes the window. It also occurs on launch when the application is completely closed. |
@lukesmurray Thanks for the information, I will look into it! |
@lukesmurray In the above code snippet, I think you are making the assumption that if the app is running that |
Also getting this issue with kitty. Focus toggle once the app is running works fine, trying to launch kitty results in the same error that others have reported in this thread. Console reports this error: (Following that file url shows the application exists and other launchers open it just fine) |
@mono-chrome I got around this with a little bit of logic and an apple script helper. maybe that will help you. |
I've noticed that Phoenix is unable to launch Alacritty via
App.launch('Alacritty')
.When I do, I see the following error in Phoenix:
This could of course be an issue with Alacritty as well, but then again:
open -a Alacritty
works. I've tried to inspect the AlacrittyInfo.plist
but haven't found anything obvious missing.Do you have any ideas @kasper? If you don't think this is fixable in Phoenix I'll open up an issue at the Alacritty repo.
The text was updated successfully, but these errors were encountered: