KDE's kdm starting filePro

Bill Campbell bill at celestial.com
Fri May 13 09:51:13 PDT 2005


On Fri, May 13, 2005, Walter Vaughan wrote:
>I am not sure this is possible. I have a KDE environment that I need to 
>startup in a GUI environment from boot via kde (this is not the problem).
>
>I'd like to (really need to) use the same login and password for logging 
>into KDE environment the same login that they will use to access filePro 
>via PuTTY.
>
>If I put "/appl/fp/p menu" inside that users .profile, it hangs the startup 
>of KDE, since it wants to run that at *it's* startup, rather than only 
>looking at that when they ssh into the filePro application.

You can create a $HOME/.xinitrc file which starts one or more
instances of FilePro in an xterm before starting the window
manager (this isn't KDE specific, but will work with any window
manager).  There's a system wide file that you can copy,
generally somewhere under /etc that you can copy and edit (on a
SuSE 9.3 Professional system it's in /etc/X11/xinit/xinitrc).

I'm attaching the one that I use which executes the window
manager under ssh-agent so I can use ssh authorized_keys easily
without having to do anything more than execute ssh-add in any
xterm window.  I added the ``exec.*startkde'' under the ``start
some nice programs'' comment.  All programs executed must be run
in background with the exception of the window manager.  FWIW,
I use a similar $HOME/.xinitrc file on Apple's OS X to run the
xfce window manager instead of their default.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Government is actually the worst failure of civilized man. There has
never been a really good one, and even those that are most tolerable
are arbitrary, cruel, grasping and unintelligent.
        -- H. L. Mencken
-------------- next part --------------
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# start some nice programs

# exec /usr/X11R6/bin/startxfce
exec /csoft/bin/ssh-agent /opt/kde3/bin/startkde
exec /csoft/bin/ssh-agent /usr/X11R6/bin/startxfce

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login


More information about the Filepro-list mailing list