Operating System - HP-UX
1833159 Members
3076 Online
110051 Solutions
New Discussion

Starting a application after a login

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

Starting a application after a login

Hi guys,

I've already write about doing what I want and I received an answer and I thought it was working fine, since this morning.... The thing is that I wanna start my SpaceBall driver, and to start it my users need to have access to the display in CDE when they log in, unfortunetly the user need to open a terminal and do the xhost + command to unlook the screen display... The driver need a manager application... that is what I wanna have for the user when they log in....

The answer that has been told to me is to put the xhost + command in the user profile and by doing that the user need a file named .Xdefaults inside what sould have this line dtterm*loginShell: True with that solution it should work... but insted I always need to open a terminal before the driver come up... I mean by that, the user log in, and in CDE it have no dtterm opened, at the time the user open a terminal, the driver come up...

How can I resolve that??? I don't know why all the users need to do a xhost before displaying in CDE???

BTW I tried to put in the profile of the user, dtexec dtterm to open a dtterm as the user is loged in, but it won't even log in to CDE...

Regards,
Jonathan
6 REPLIES 6
Jonathan Caplette_1
Super Advisor

Re: Starting a application after a login

Anybody help!!! I'm diying!!!

come on somebody must know the answer!!
Robert-Jan Goossens
Honored Contributor

Re: Starting a application after a login

Hi Jonathan,

Think this is your situation, your users login on their own workstation before they login on a application server.

If this is true, just put xhost +severname in their .profile on their workstation.

Robert-Jan.
Wodisch
Honored Contributor
Solution

Re: Starting a application after a login

Hi Jonathan,

I don't really understand the background of your problem, so I am just going for the "xhost +" for everybody...
Edit the "Xstartup" script and include the "xhost +" there:
# cp /ust/dt/config/Xstartup /etc/dt/config
# echo "xhost +" >> /etc/dt/config/Xstartup
# kill -1 $(UNIX95=. ps -C dtlogin -o pid="" )

That way upon CDE login that command is executed...

FWIW,
Wodisch
Bill Thorsteinson
Honored Contributor

Re: Starting a application after a login

Try adding the command to the users .dtprofile script.
Jonathan Caplette_1
Super Advisor

Re: Starting a application after a login

Wodish answer worked fine!!

Thanks!
Alex Glennie
Honored Contributor

Re: Starting a application after a login

Alternatives :

add the local hostname and any remote systems hostname you wish to grant Xhost access to into a file called : /etc/X0.hosts - restart Xserver for it to take effect.

or in $HOME/.dt/sessions creare a script called sessionetc

contents =

/usr/dt/bin/dtterm -display &

make it executable , log in & out of CDE.