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

[Bug] Continually closes and needs re-opened #17

Open
Autoparallel opened this issue Jun 18, 2023 · 0 comments
Open

[Bug] Continually closes and needs re-opened #17

Autoparallel opened this issue Jun 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Autoparallel
Copy link

Problem

I have Yabai Indicator set as a login item. However, as my computer sleeps, the application sometimes closes and will need reopened.

Question

Is there a correct way to set this as a service and avoid this problem? If so, that would be nice to include in the README.

Potential Solution

Perhaps something like this can help:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>RunAtLoad</key>  
        <true/>  
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>SomeApp.restart</string>
        <key>ProgramArguments</key>
        <array>
                <string>/path/to/SomeApp.app/Contents/MacOS/SomeApp</string>
        </array>
</dict>
</plist>

I found this in a solution here. I am happy to give this a try and submit a PR to update the README if I can confirm this addresses the issue.

@xiamaz xiamaz added the bug Something isn't working label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants