| Age | Commit message (Collapse) | Author |
|
|
|
This reverts commit e5debc332f2b11f4e768e0a5b0f2b8770c25523e.
Actually, I don't really like that. The methods should instead do first
and error if it doesn't work. Why bother checking? We'll keep the
`isRunning` method around though because we need it to know what the
"Launch Application" button should read.
|
|
If the daemon is already running when `launch` is called, don't bother
launching. If the daemon is not running when `quit` is called, don't
bother quitting.
|
|
Says whether or not the daemon app is currently running.
|
|
Launch the daemon when checked and quit it when unchecked.
Now that I'm committing this, I don't really think this is the exact
right behaviour. I think running and terminating the app should be maybe
a different control so that running it isn't contingent on having it
start at login.
|
|
A new checkbox in the UI that asks whether the app should start at
login. Checking and unchecking the box moves a LaunchAgent plist into
and out of `~/Library/LaunchAgents/`. This plist file will define
instructions to start the daemon on login.
Also add a `DaemonLauncher` class that will launch or quit the daemon
when the checkbox is clicked.
Bug:
Currently the app always starts with the checkbox checked. That's not
what should happen. Instead, we should save the checkbox value to
`NSUserDefaults` so that it has the previous value when the program is
launched.
|