Xphoton Multiuser?

We use Phindows to give several developers access to the same QNX machine.
It’s always worked well for us with QNX 4. When we attempted to use Xphoton
on RTP like this we ran into a problem. All Xphoton windows display on the
first Phindows session, no matter where they are launched from.

So, is Xphoton a single-user application?

Thanks,
Marty Doane

In article <8t1857$rtu$1@inn.qnx.com>,
Marty Doane <doanemr@REMOVE_rapistan.com> wrote:

We use Phindows to give several developers access to the same QNX machine.
It’s always worked well for us with QNX 4. When we attempted to use Xphoton
on RTP like this we ran into a problem. All Xphoton windows display on the
first Phindows session, no matter where they are launched from.

So, is Xphoton a single-user application?

No, but it will only connect to one Photon session.

The script that starts Photon, starts Xphoton
(default display 0) and sets the DISPLAY env variable
so that any X apps you start connect to display 0.

When you start another Photon session, it tries to
start another Xphoton which fails because there is
already a server for display 0. But you do get your
DISPLAY env var set to connect to 0.

If you want a separate Xphoton for your session
you would need to specify a different X display
number.
$ Xphoton :1 -once &
$ gtwm &
$ export DISPLAY=127.1:1.0
start some X apps

in the next session
$ Xphoton :2 -once &
$ gtwm &
$ export DISPLAY=127.1:2.0
start some X apps

and so on…

We’ll try to make this automatic sometime in the
near future.

\

Garry Turcotte (R&D)
QNX Software Systems, Ltd.