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

services/yabai: cleanup and add errorLogFile/outLogFile #1231

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

khaneliman
Copy link
Contributor

Similar to #840 for allowing one to monitor the application's output in their logs.

Copy link
Contributor

@Samasaur1 Samasaur1 left a comment

Choose a reason for hiding this comment

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

I noticed some inconsistencies about the log files. Intuitively (and based on #1226 which includes the upstream plist) I'd say we probably want separate standard output and standard error logs by default

modules/services/yabai/default.nix Show resolved Hide resolved
modules/services/yabai/default.nix Outdated Show resolved Hide resolved
@Samasaur1
Copy link
Contributor

Otherwise this PR looks great to me

@khaneliman khaneliman force-pushed the yabai branch 2 times, most recently from 58cb14f to 2bae2aa Compare December 22, 2024 22:12
@khaneliman khaneliman changed the title services/yabai: cleanup and add logFile services/yabai: cleanup and add errorLogFile/outLogFile Dec 22, 2024
@khaneliman khaneliman requested a review from Samasaur1 December 22, 2024 22:15
@Samasaur1
Copy link
Contributor

Not gonna comment on the other two PRs but I have the same question about log location

@0rphee
Copy link

0rphee commented Dec 23, 2024

Just chiming in, the default yabai plist (as I'm writing this) can be found here: https://github.com/koekeishiya/yabai/blob/f4ada8d557aeb9c8ba0d031ee6f645acffff50fd/src/misc/service.h#L8-L42

As a user, I think its better to keep most of it as-is, to avoid differences in behavior from a 'normal' yabai installation. However, it would be nice to allow the option to override the launch agent configuration.

@Samasaur1
Copy link
Contributor

Yeah, just the fct that the option exists means that users will be able to override it. I think we should match upstream and change the default log location to under /tmp

Copy link

@spikespaz spikespaz left a comment

Choose a reason for hiding this comment

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

This PR seems to have changed the formatter, which makes for a noisy diff.

Could you please format the original file with your formatter, and standardize it for nix-darwin, and then rebase this PR to produce a clean diff, with only changes necessary for the stated goal?

Either that, or try to make this change without a formatter.

@khaneliman
Copy link
Contributor Author

This PR seems to have changed the formatter, which makes for a noisy diff.

Could you please format the original file with your formatter, and standardize it for nix-darwin, and then rebase this PR to produce a clean diff, with only changes necessary for the stated goal?

Either that, or try to make this change without a formatter.

It's already 2 commits to separate the formatting from the function.

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.

4 participants