[sugar] Display warnings in sugar
Michael Stone
michael at laptop.org
Thu Jul 17 15:39:32 EDT 2008
On Thu, Jul 17, 2008 at 10:27:21AM -0300, Emiliano Pastorino wrote:
Emiliano,
I'm not sure of the right way to help you in the long term, but if you
want a quick hack, you might try something like:
1. Install a cronjob that runs every few minutes.
2. When it runs, it should check the available space.
3. If it concludes that space is low, pop up a warning.
Warnings can be simple X or pygtk programs (see the 'dialog' Linux
scripts for ideas). To get this hooked up to the running X display,
you'll need to set some environment variables:
DISPLAY=:0
XAUTHORITY=/home/olpc/.Xauthority
Ask if you need more help.
Michael
More information about the Sugar
mailing list