Re: Scheduling jobs based on filesystem activity with incron
Posted by: Fletch
on August 21, 2008 03:24 AM
Probably wouldn't fool with xhost and the display variables as that opens your computer to allow any other user on the system to open things to your display while you are using it, and really, shouldn't be needed.
So if incron runs as root, root doesn't have access to your display. Is incron allowing you to create your own cron file? If not, can you not make your job run like su - <your username> -c "command to be invoked" instead? I think that might pick up your environment so that it would have permission to update your display. Don't hate xauth. It's there for a reason.
[Modified by: Fletch on August 20, 2008 09:34 PM]