LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting process on display :1 (https://www.linuxquestions.org/questions/linux-general-1/starting-process-on-display-1-a-385754/)

noware 11-23-2005 04:02 AM

Starting process on display :1
 
Hi all!

I have my TV connected to my video-card, but since my TV's resolution is 640x480 - which looks really sick on my monitor :) - I start a new X on display :1 in 640x480 to switch to it when I want to watch a movie on TV. The problem is that I can only start an xterm on display :1. Maybe I should start a window manager (I don't know how...) , but what I really would like to do is start a process (e.g. a movie-player) on display :1 , from the X running on display :0. Is that possible ? (I'm sure it is, but I could not do it yet). Any help would be appriciated.

Thanx.

nx5000 11-23-2005 09:26 AM

Quote:

Originally posted by noware
what I really would like to do is start a process (e.g. a movie-player) on display :1 , from the X running on display :0
if it is a standard X application:
Code:

movie-player -display :1


Code:

$export DISPLAY=:1
$movie-player


noware 11-24-2005 03:29 AM

Thanks nx5000 , I will try it.
Anyway , the app is MPlayer with or without GUI , or with some KDE frontend...

noware 11-29-2005 08:07 AM

Thank you again, nx5000 it's working. Never tought , it would be such easy...

My next question is, that how can i start some lightweight windowmanager (e.g. xfce or enlightment) on the raw X server, when i have a KDE or Gnome running on X :0 ?

Thanx

nx5000 11-29-2005 08:50 AM

For running twm on :1

twm -display :1


or
export DISPLAY=:1
twm / xfce / ..

noware 11-29-2005 10:32 AM

Thank you nx5000!

maybe i should think, before i ask...

Thanks again!

noware 11-30-2005 03:11 AM

Hi again,

I tried twm -display :1 , but all that happpened was that X switched to display :1 and drew a white rectangle to the upper section. That was all. Neither the export DISPLAY=:1 stuff is working. I tried them with twm, xfce, ratpoison and enlightment but none of them succeeded.

Does anyone know something about it?

ciotog 12-01-2005 02:23 AM

Here's how I start xfce (for example) on tty8:
Code:

xinit /etc/X11/xinit/xinitrc.xfce -- :1

nx5000 12-01-2005 06:52 AM

Maybe the rectangle is a shell? :) From there you can launch maybe kicker, panel but as ciotog said , its easier to do this:

Code:

xinit /etc/X11/xinit/xinitrc.xfce -- :1
I wanted to look what xfce looked like so I played a bit on display 1
For those looking at this post, I will post my "findings"
On my debian (unstable, xorg, gdm):

Code:

xfce4_setup
it creates ~/.xinitrc

here it took me a while because xfwm4 --daemon does not return!
so xinitrc does not work (bug in xfce4?). Also not so nice the documentation is not at the usual place /usr/share/doc ....

so I had to add an & add the end of the line:

Code:

/usr/bin/xfwm4 --daemon &
then to be able to launch X as non privilege user put this:

Code:

allowed_user=anybody
in /etc/X11/Xwrapper.config

and finally to run Xfce4 :

Code:

xinit -- :1 -auth ~/.Xauthority


All times are GMT -5. The time now is 06:24 PM.