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

macos neovide disown from terminal #402 #411

Merged
merged 2 commits into from
Dec 21, 2020
Merged

macos neovide disown from terminal #402 #411

merged 2 commits into from
Dec 21, 2020

Conversation

tarunzoot
Copy link

nevoid can now be run on macOS without spawning a new terminal, it will disown itself on the first run.

src/main.rs Outdated
@@ -34,6 +34,21 @@ fn main() {

#[cfg(target_os = "macos")]
{
// incase of app bundle, we can just pass --disowned option straight away to bypass this check
#[cfg(not(debug_assertions))]
if std::env::args().find(|f| f == "--disowned").is_none() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpick: to me using !any() rather than find().is_none() makes more sense as we wouldn't be depending on the option being none for the boolean value

@Kethku
Copy link
Member

Kethku commented Dec 18, 2020

I think this makes sense to merge. One thing I'm curious about, how does this effect startup performance? I suspect it might effect it a bit, but I wonder by how much?

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

Successfully merging this pull request may close these issues.

None yet

2 participants