Heres a thought for you on doing it
here i have kmail and my program of choice
1) as root navigate to
/etc/X11/xinit
2) Create a text file and name it xinitrc.kmail
3) past this in as follows to have something to play around with
Quote:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld 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
twm &
kmail -geometry 1024x768+0+0 &
exec xterm -geometry 80x66+0+0 -name MyCompany
|
this is taken straight from the xinitrc.twm minus all the xterms it starts. At the bottom you'll notice it starts twm. Just a window manager that uses a hell of a lot less resources than kde. As someone said above if all you want to start is one program to initialize kde unless its a must for some bizarre reason.
Next you'll notice it starts kmail with the geometry set as 1024x768+0+0. The first two numbers are obviously the the size of the box and should be set to whatever the screen resolution is. The +0+0 are the x and y coordinates of the top left corner of the program. Thus if the x and y are set to 0 and 0 and the size of the box is set to the screen resolution, the program will start taking up the entire screen.
The exec xterm... is necessary for twm to start, work, and get kmail going. Plus it will provide you with a terminal to 'su' with and fix things if you need to and then you can exit 'su' and issue the kmail -geo... or have a script to do it and have the program back up.
Now save the file
4) from /etc/X11/xinit
rm xinitrc
ln -s xinitrc.kmail xinitrc
Remove the current link which is whatever you chose as your default X session such as kde, gnome, etc and create a new link to what you just created.
5) issue startx et voila
Now im not exactly in a position to try this out at the moment but see if you follow me.
in /etc/X11/xinit
rename xinitrc.kde to xinitrc.other
then rename your xinitrc.kmail to xinitrc.kde
and then link xinitrc to xinitrc.kde
google and find out the command line to start the kde control panel and then go in and setup the autologin stuff and it should try and start the xinitrc.kde maybe
Of course now im just plain hacking around ( like i wasn't before
)
This would enable you to boot the computer up straight to your program and if you need to, close your program and get to the xterm, launch kde control panel and make changes to what user is booting up.
The only thing left from that would be securing things up to keep people from messing around with it.
Just some thoughts