[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Secure (?) way of displaying a popup window



On Tue, Jul 22, 2003 at 07:21:17PM +0200, Joerg Johannes wrote:
> I have written a short perl script which reads the battery status of my 
> laptop out of /proc/acpi/battery/BAT1/state, to be able to see how much 
> time I have left until I have to shutdown or running to the nect power 
> jack. I know there exists a kde applet which does this job, but I use 
> plain IceWM, so I have to do it myself. My idea is: I have this script 
> running as a daemon, and if battery capacity goes below a certain 
> threshold, a window (Perl/TK or /GTK) should pop up and say:
> "Boy, you better run now..."
> Now my problem is: Usually only I have the right to display a new window 
> on my screen, not any daemon user, no normal user and and certainly not 
> root. Any pointers how to do that?

Wouldn't you run this only while logged in, and therefore you could
simply run it as your own user? Start it up in .xsession and kill it on
logout.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: