[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: starting an app in the current directory
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-12-14 11:13:10
[Download RAW message or body]

On Friday 14 December 2001 01:15, Jerome Yuzyk wrote:
> I have associated VIM (gvim?) with *.txt. I like to use KFM to open files 
> with middle-click. How do I tell VIM to open the file and stay in the 
> directory the file came from? VIM always opens the file from $HOME.

See my recent reply about the inexisting notion of "current dir" in a graphical
environment (I guess it was on kde-devel).
Solution is simple, change the Exec line to
sh -c "cd %d ; vim %f"

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE 3.0: Konquering the Desktops

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic