Dolphin Bug/Wish - set working directory

James Richard Tyrer tyrerj at acm.org
Tue Sep 9 15:04:56 BST 2008


Syam Krishnan wrote:
> Hello..
> 
>     Please take a look at these bug reports:
> https://bugs.kde.org/show_bug.cgi?id=131010
> https://bugs.kde.org/show_bug.cgi?id=157215
> 
> The wish is to set working directory as the current directory (instead 
> of $HOME) for programs executed from Dolphin/Konqueror.
> This will make execution of script files easier by just clicking on them 
> (instead of running from a terminal).
> 
I have to say that these bugs are not valid.  The current directory 
needs to be set for data.

The proper *NIX way to do this when a program is not installed in a 
directory on the PATH is to make a startup script (like Firefox uses) 
and then make a link for the startup script to a 'bin' directory which 
is on the PATH.  This script can:

	Current_Dir=`pwd`
	PATH=$Current_Dir/bin:$PATH
	LD_LIBRARY_PATH=$Current_DIR/lib:$LD_LIBRARY_PATH
	export PATH LD_LIBRARY_PATH
	exec $Current_Dir/bin/<app_name>

or something similar.

-- 
JRT




More information about the kfm-devel mailing list