Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Runnin photon application without window menager
Ref. No. QNX.000009894
Category(ies) Development
Issue We want to run a 'captive' photon application, but we do not want the user to see the window menager, a shell being brought up, etc.

Is this possible?

Solution If you do not want your menager to run at all just do
x09export PHWM=/bin/true
prior to invoking 'ph'. You will want to add this to your sysinit file if booting right into photon.
This will cause a significant delay if you're  running apps using your ~/.photon/phapps file, since the ph script waits for the window manager to start up (times out at 30 sec) before executing the phapps script.

Bottom line is, the shipped ph script is designed for general-purpose use. If you are customizing a system to this degree, you want to consider customizing the ph script to meet your needs more.

You also want your application to run full-screen by setting the Ph_WM_STATE_ISMAX flag in the Pt_ARG_WINDOW_STATE resource of your base window.
This flag only works with a window manager. In general, any flag/function that has a 'WM' in it, depends on the window menager to work as expected.