Setup file for startkde

Andy Goossens andygoossens at pandora.be
Fri Feb 20 11:06:01 GMT 2004


On Friday 20 February 2004 10:55, David Faure wrote:
> Here's a proposal for a one-liner addition to startkde, which would allow
> people to set environment variables to be used by KDE, but also to run
> programs that set environment variables, like ssh-agent and gpg-agent.
>
> I thought of ~/.kde/setup: under ~/.kde in order to avoid cluttering the
> home dir, but right under there so that it's easy to find/edit. Of course
> we won't ship such a file by default, but e.g. the instructions for setting
> up ssh-agent and gpg-agent for KDE would tell people to edit ~/.kde/setup.

How about making ~/.kde/setup a directory which can contain several scripts to 
set environment variables? That makes it easier to extend than a single file 
which stores everything.


The code in startkde would become:

for i in ~/.kde/setup/*.sh ; do
	if [ -x $i ]; then
		. $i
	fi
done

-- 
// Andy Goossens

// Quote of the moment:
Adapt.  Enjoy.  Survive.




More information about the kde-core-devel mailing list