Re: gkrellmd question

Rio <[email protected]> Fri, 15 Jan 2010 08:33:33 -0500
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
cool! thanks! looks interesting.. will mess with it in the next day or 2 once i finish 
this job i have to do.  so tempting to ignore work and do this, but this is my work 
workstation as well as my personal one so unfortunately job comes first :(

i think this can come in handy in several situations.

On Friday 15 January 2010, you wrote:
> On Fri, 15 Jan 2010, Rio wrote:
> 
> > hehe after rebooting, even in local startup file it doesn't work because gkrellmd is 
> > started before X is initialized i think, and xhost doesnt work there since it cannot 
find 
> > a screen yet... i had to move gkrellmd startup to kde's Autostart directory which 
started 
> > it with proper visibility. only caveat is the client gives an error it cannot find the 
> > server but i hit try again and then it works. probably due to desktop inits starting 
> > before the autostart script.
> 
> I'm teaching myself X11 programming right now.  The attached program 
> will busy-loop until an X11 display is available.
> 
> Compile:
> 
> gcc $(pkg-config x11 --cflags) -o x11_is_active x11_is_active.c $(pkg-config x11 --libs)
> 
> Run:
> 
> Simple: x11_is_active && dosomething-with-X
> 
> All options:
> 
> x11_is_active -delay 1 -maxtry 10 -display :0 -v
>  -delay - specifies length of 'sleep' between failed attempts
>  -maxtry - maximum tries to connect
>  -display - name of X11 display (if not specified, uses X11 lib defaults)
>  -v - for verbose (without '-v' there's no output at all)
> 
> Maybe useful.  Maybe not.  Maybe it already exists.
> 
> Best,
> Ben


-- 

Rio


______________________________________________
Gkrellm mailing list
[email protected]
Read archives-join-leave-set RSS feed:
http://archive.lists.netservicesgroup.com
This service is provided by The Network Services Group:
http://www.netservicesgroup.com