Watch repeat #126

Merged
merged 6 commits into from Dec 4, 2014

Projects

None yet

2 participants

@benjaminoakes
Owner

No description provided.

@jurriaan
Contributor

Nice!

@benjaminoakes benjaminoakes merged commit 30fe14b into benjaminoakes:master Dec 4, 2014
@benjaminoakes
Owner

@jurriaan I've merged this, but I think it could be useful to have an example of how to start the daemon on login -- probably for Ubuntu and OSX. Have any input?

@jurriaan
Contributor
jurriaan commented Dec 7, 2014

@benjaminoakes I'm a bit busy at the moment, but for OS X you can just create a launchctl daemon and place it in ~/Library/LaunchAgents, maybe we can provide a plist file that users can put in their LaunchAgents folder? I'm not sure how we make sure that it loads everything using the correct ruby version, you want it to run using your login shell I think.

I haven't used Ubuntu in a while, it depends on which Desktop Environment you're running of course, but it can be as simple as putting something in your xinitrc file..

@jurriaan
Contributor
jurriaan commented Dec 8, 2014

Hmm, I broke a few things with this change.. Seems like Maid::Tools somehow isn't available in the watch/repeat blocks.

@jurriaan
Contributor
jurriaan commented Jan 1, 2015

@benjaminoakes I've written a small article about starting maid on login on OS X: http://jurriaan.ninja/2015/01/01/maid-on-os-x.html

@benjaminoakes
Owner

Nice. It feels like we should include a Launch Agent with the project. In the meantime, I'll add a link to your post in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment