[linux-audio-dev] running x programs from the command line

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] running x programs from the command line
From: dave willis (dubson_AT_dhammanet.net)
Date: Wed Nov 21 2001 - 10:57:44 EET


On Tue, 20 Nov 2001, Joe Pfeiffer wrote:

> > so, "DISPLAY=0:0 programname options" will start any x program (should be
> > useful in init scripts, as i'd like to have pd to be up-and-running on a
> > (re)boot when in a performance mode).
>
> What that's doing is setting an environment variable to tell realplay
> that there is an X server, becasue apparently it will refuse if you
> try to run it when X isn't running. But then it apparently is able to
> get by without communicating with the server, otherwise it would
> crash. This approach will not work for a program that actually
> requires its GUI, because it would indeed crash when it was unable to
> communicate with it. And I'd expect a program that could run without
> its GUI to be able to see it didn't have an environment variable set
> for the server, and to proceed on that basis. Hence my comment. I'm
> not quite sure what the framebuffer has to do with it...

i'm not sure of the rules on this with x, but i did some testing, and i'm
keeping my position. "DISPLAY=0:0 programname options" only works for me
*if* x is running. what this does is tells the program not to try to run
from the current display (which is not x), but that x is located at 0:0
and to run there. the x framebuffer is for (among other things) when you
don't have an x-capable display because of really old video hardware,
unsupported video hardware, or no video hardware. for example, i can run
realplay from the normal command line without x running with the
following:

(Xvfb -pixdepths 15 & DISPLAY=0:0 /usr/lib/RealPlayer8/realplay wava.ram)

i can also get pd, gimp, and netscape to run the same way (although i see
no point in running netscape that way). and i can do this on a computer
that has no video card. this is good for any program that can be
controlled (at least enough) with the command-line, but pointless for any
x app that cannot do anything useful on startup (as this is the only
control easily available).

-dave

-- 
perl -e'@email=split(//,".tenmhd\@nosbud");foreach$letter(@email){$
email=$letter.$email;}$email=~s/(m|net\.)/a\1\1/g;print"$email\n";'


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Nov 21 2001 - 10:52:10 EET