[sugar] Display warnings in sugar

Emiliano Pastorino epastorino at plan.ceibal.edu.uy
Thu Jul 17 15:47:22 EDT 2008


Thanks, Michael!
I was just trying that, but I was missing the XAUTHORITY variable.
I think that's going to do the job by now.


On Thu, Jul 17, 2008 at 4:39 PM, Michael Stone <michael at laptop.org> wrote:

> 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
>



-- 
Emiliano Pastorino
LATU - Plan Ceibal
Av. Italia 6201 CP: 11500, Montevideo, Uruguay
Tel: (598 2) 601 3724 int.: 469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080717/5a157882/attachment.htm 


More information about the Sugar mailing list