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

AfloatX loaded printed in terminals #38

Open
nihaals opened this issue Jan 3, 2024 · 0 comments
Open

AfloatX loaded printed in terminals #38

nihaals opened this issue Jan 3, 2024 · 0 comments

Comments

@nihaals
Copy link

nihaals commented Jan 3, 2024

When I'm using iTerm2 or Warp and fish (possibly other shells too) and run a command that takes a few seconds or longer, sometimes this is added to the logs of the command:

2024-01-03 09:11:16.515 terminal-notifier[86954:7853565] AfloatX loaded

I narrowed it down to the NSLog:

NSLog(@"AfloatX loaded");

I patched the binary, no-oping the NSLog call and it fixed the issue.

Maybe there's a way to still log it without it affecting terminals? I even tried adding iTerm2 and Warp to MacForge's blacklist and the message was still logged. My only guess is that it's due to what it says in NSLogv()'s docs (although I'm still unsure whose log it's collecting since if it is another app's then a random shell shouldn't be capturing it?):

If the STDERR_FILENO file descriptor has been redirected away from the default or is going to a tty, it will also be written there.

  • macOS 13.6.2
  • MacForge 1.2.2 (2)
  • AfloatX 1.6
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

1 participant