Operating System - HP-UX
1840535 Members
2703 Online
110165 Solutions
New Discussion

Running Motif/X Application with no CDE login screen

 
Keith Meloy_1
Occasional Advisor

Running Motif/X Application with no CDE login screen

I am trying to get a workstation (running 10.20) to run a Motif/X program when it boots up. The idea being that user can only run this program and does not even see a CDE login screen.
I cannot find any documentation about this, can anyone help?
6 REPLIES 6
Mark Grant
Honored Contributor

Re: Running Motif/X Application with no CDE login screen

You might get away with just replacing the dtlogin binary with your own application and if that works then you are a lucky dude!

The only way I have found to do this was with "vue" (the precursor to CDE). There isn't any documentation. I know this because when I was trying to do something similar I had to threaten HP with the thought that if I was developing a window manager it couldn't be done with HPUX until they pointed me in the right direction. This does not appear to be the direction anymoer though.

CDE is such an awful mess that it might not be possible to ever find the way to do this but basically, you might be able to have your command in /usr/dt/config/Xsetup (this is the correct place for this kind of thing but as I said CDE is a mess) or possibly, changing some of the defaults in /usr/dt/config/Xconfig. If you can persuade it to run in xdm mode from this file, and it actually works then you really can do it with /usr/lib/X11R6/xdm/Xsetup.

Alternatively, just install Xfree86, you know it makes sense!

Never preceed any demonstration with anything more predictive than "watch this"
Alex Glennie
Honored Contributor

Re: Running Motif/X Application with no CDE login screen

why not make use of the CDE SESSIONTYPE variable ...

vi $HOME/.dtprofile :

add SESSIONTYPE=xdm

add the Motif application to say a $HOME/.xsession file cp from sys.xsession
Mark Grant
Honored Contributor

Re: Running Motif/X Application with no CDE login screen

Alex, I think the user wants to have the application come up before the login box appears. It's at this point that CDE becomes a real pain :)
Never preceed any demonstration with anything more predictive than "watch this"
Alex Glennie
Honored Contributor

Re: Running Motif/X Application with no CDE login screen

hence my answer ;-)
Keith Meloy_1
Occasional Advisor

Re: Running Motif/X Application with no CDE login screen

Alex

If user is not logging in - how can I make use of $HOME/.dtprofile?

Would this work if they logged in via command line first?
Alex Glennie
Honored Contributor

Re: Running Motif/X Application with no CDE login screen

The above method makes use of dtlogin to authenticate the user .... after that CDE is no more instead they'll be presented with a cut down Xsession tailored to your/their needs.