Bug#644635: vim-gui-common: Set working directory when invoking via the .desktop file

Daniel Skorka skorka at gmx.net
Fri Oct 7 16:31:11 UTC 2011


Package: vim-gui-common
Version: 2:7.2.445+hg~cb94c42c0e1a-1
Severity: wishlist


Hello there,

the current /usr/share/applications/gvim.desktop uses
Exec=gvim -f %F
which leaves the working directory set to $HOME. Therefore, commands
like :make will fail if the file being edited is not in $HOME.
This is often confusing, as one tends to forget this behaviour. In
addition, I don't think one would normally want to leave the working dir
set to $HOME.
I'd like the Exec line to specifically change the working directory, for
example by doing something like
Exec=gvim -f -c"cd $(dirname %F)" %F
What's your opinion?

Best regards,
Daniel

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

vim-gui-common depends on no packages.

Versions of packages vim-gui-common recommends:
ii  vim-gtk      2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor -

vim-gui-common suggests no packages.

-- no debconf information





More information about the pkg-vim-maintainers mailing list