README

kdeinit5_wrapper, kshell5 and kwrapper5 are programs that
start programs via kdeinit.

E.g. You can make a symbolic link from $KDEDIR/bin/konsole to
$KDEDIR/bin/kdeinit5_wrapper. Typing 'konsole' on the command line
will then start 'konsole.so' through kdeinit instead.

kdeinit5_wrapper is the simplest form, it only passes the program
and arguments to kdeinit, nothing else

kshell5 is usually the best choice, it passes the program,
arguments, complete environment ( $PATH, etc. ) and current
working directory to kdeinit

kwrapper5 tries to make the program look like it was actually
really started directly and not via kdeinit. In addition to
what kshell5 does, it also tries to redirect the program
output to the console from which kwrapper5 was started, it waits
for the program started via kdeinit to finish and only after then
it exits ( it doesn't return its return value though ), and
it also passes most signals it gets to the process of the started
program ( thus allowing you to break it using Ctrl+C or stopping
it using Ctrl+Z ). The drawbacks of this are that you'll have one
more process running, and also the signal passing and output
redirection may not work 100% reliably.


TODO
====

* There is no portable way to read out the complete environment and
  pass it to kdeinit. - kdeinit should probably unset every
  variable that's not set in the environment it gets from kshell or
  kwrapper
