Skip to content

Conversation

tbodt
Copy link
Contributor

@tbodt tbodt commented Jul 13, 2017

This fixes all the weirdness where opening the app bundle would start one copy which immediately disappeared and then start another copy, etc. The code to get the locale probably should be reorganized.

@jwilm
Copy link
Contributor

jwilm commented Jul 13, 2017

Thanks for the PR! This looks good, but for some reason Alacritty.app no longer shows a window when I try and use it. Any idea?

@tbodt
Copy link
Contributor Author

tbodt commented Jul 13, 2017

I ran into that too. Changing the bundle ID in the info.plist fixed it for me, so I assumed it was just something about the launch services cache. Maybe it is. /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill would clear it.

@jwilm
Copy link
Contributor

jwilm commented Jul 13, 2017

Not sure if this was a problem before, but doing open -n -a /Applications/Alacritty seems to trigger that behavior when an Alacritty is already open.

@tbodt
Copy link
Contributor Author

tbodt commented Jul 13, 2017

I suspect that's because macOS apps aren't generally supposed to have multiple instances open. Will investigate.

@jwilm
Copy link
Contributor

jwilm commented Jul 13, 2017

This is kind of getting into the multiple windows territory, but it would be nice if we could support it easily. For instance, I can setup a keybinding like

  - { key: N,        mods: Command, command: { program: open, args: ['-n', '-a', '/Applications/Alacritty.app'] } }

to open new instances, but it doesn't matter if they don't show up. 😆

In any case, maybe this problem is nothing new with your PR and it has always been a problem.

@tbodt
Copy link
Contributor Author

tbodt commented Jul 13, 2017

Yeah, changing the bundle ID to io.alacritty and removing the launcher seems to trigger this on all versions of alacritty. This is kinda weird though.

@luceat-lux-vestra
Copy link

luceat-lux-vestra commented Jul 17, 2017

don't show up problem still happening after I commented CFBundleExecutable thing out.
And removing Saved Application State folder solve it.


I solved #668 by deletes all of supporting files(CleanMyMac's term).

Actually, I deleted these two locations.
~/Library/Saved Application State/com.jwlim.alacritty (CFBundleIdentifier which you gave to alacritty) This is the reason rather than below one.
/private/var/folders/**some randome places**/com.jwlim.alacritty

I don't know what's in there exactly.
But it solves don't show up issue.

  • comment out CFBundleExecutable thing on info.plist

@tbodt
Copy link
Contributor Author

tbodt commented Jul 18, 2017

ooh, it's really good to know that deleting Saved Application State helps. one of those features that apple enabled for everyone including people who really don't want it.

@tbodt
Copy link
Contributor Author

tbodt commented Oct 30, 2017

Moving this to a new PR so that I can do more interesting stuff on my master branch. #879

@tbodt tbodt closed this Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants