[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KDE application startup question



> How do I tell KDE to start an application in the same directory where the
> file it is supposed to open is saved?
> 
this is only a dirty hack (i don't know of a native solution).
"simply" create a wrapper:

gvim-wrapper:
#! /bin/sh
base=${1##*/}
path=${1%$base}
test "$path" && cd "$path"
exec gvim "$1"

tell the file association to execute the wrapper instead of the
native program and you're done.

hth

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.



Reply to: