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

can support autostart on system login #4

Open
ka1i opened this issue Aug 25, 2022 · 3 comments
Open

can support autostart on system login #4

ka1i opened this issue Aug 25, 2022 · 3 comments

Comments

@ka1i
Copy link

ka1i commented Aug 25, 2022

I think this app can support autostart on login. 👍

  • I write this config file: ITraffic.plist.
<?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>Label</key>
    <string>com.foamzou.ITraffic</string>
    <key>EnvironmentVariables</key>
    <dict>
      <key>PATH</key>
      <string>/usr/local/bin:/usr/bin:/bin</string>
    </dict>
    <key>ProgramArguments</key>
    <array>
      <string>/Applications/ITraffic.app/Contents/MacOS/ITraffic</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <false/>
    <key>LaunchOnlyOnce</key>        
    <true/>
</dict>
</plist>

Usage:

copy this file to ~/Library/LaunchAgents

example

cp ITraffic.plist ~/Library/LaunchAgents

and reboot you system.you can see ITraffic is startup.

@foamzou
Copy link
Owner

foamzou commented Aug 25, 2022

Thanks bro. But it's better provide the choose to the user. For example, place a checkbox( naming run at startup) on the menu.
Would you like make a pull request for the feature?

@ka1i
Copy link
Author

ka1i commented Aug 26, 2022

Sorry I'am noob guy for this. 😭

@foamzou
Copy link
Owner

foamzou commented Aug 26, 2022

Hhh no worry. I will arrange the feature. Anyway, Thx your advice.

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

2 participants