I am in process of creating kiosk system on CentOS 6.9 minimal install with Gnome Display Manager (gdm) and Openmotif Window Manager (mwm) and Firefox web browser.

I have connected gdm to mwm by installing xorg-x11-xinit-session packet and creating ~/.Xclients file with single line


like described in question https://access.redhat.com/discussions/1339013

Now after I enter my credentials on Gnome Display Manager - Openmotif Window Manager launches

Now my task is to start Firefox (preferably in full screen) when Openmotif Window Manager launches

I can successfully start Firefox if I pin it to Openmotif right click menu by changing Openmotif configuration file /etc/X11/mwm/system.mwmrc but I need that Firefox will start automatically

If I change ~/.Xclients file like this


or like this


then Openmotif start up successfully, but firefox do not

How can I start Firefox (prerably in Full screen mode) after Openmotif Window Manager launches?

  • ~/.Xcients looks like it should be ~/.Xclients - a typo here only or in the real world, too? – Ned64 Sep 18 '17 at 17:00
  • A typo only here – Link08 Sep 19 '17 at 3:06
  • then my Answer should work?! Please try and let me know so I can adapt it if necessary. – Ned64 Sep 19 '17 at 8:51
  • I am glad. Please mark the answer as working so that people know. – Ned64 Sep 19 '17 at 12:18

The mwm does not exit, and until it does, the firefox command will not be started. So, start mwm in the background, like this:

/usr/bin/mwm &

That way, once firefox exits, your session may exit. If you do not like that you can do

/usr/bin/mwm &
/usr/bin/firefox &
wait $PID

Oh, and you mistyped ~/.Xclients, but probably only in this question.

Alternatively, if for some reason in the first variant mwm does not exit when firefox does, but you want it to, you can do

/usr/bin/mwm &
kill -HUP $WMPID
  • You could also add a sleep 1 or sleep 2 before the firefox line to give the window manager a second or two to start up before starting firefox. This may or may not be useful in your setup, depending on your hardware/speed and desired use case. – Ned64 Sep 19 '17 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.