summaryrefslogtreecommitdiff
path: root/src/dosinst.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-07 04:49:27 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-07 04:49:27 +0100
commit03e228a623304c0afed231ad1605153dd56335be (patch)
tree6c1faa367ed42eddb9ec28f05f102466993fca6b /src/dosinst.c
parentfcea03ddd3dc54c8a0a786af5e75bbfbcf8fb3b7 (diff)
downloadvim-git-03e228a623304c0afed231ad1605153dd56335be.tar.gz
updated for version 7.4.077v7.4.077
Problem: DOS installer creates shortcut without a path, resulting in the current directory to be C:\Windows\system32. Solution: Use environment variables.
Diffstat (limited to 'src/dosinst.c')
-rw-r--r--src/dosinst.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dosinst.c b/src/dosinst.c
index 3c5e59bd5..3fbfb5c5c 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -1773,9 +1773,11 @@ build_shortcut(
/*
* We used to use "homedir" as the working directory, but that is a bad choice
- * on multi-user systems. Not specifying a directory appears to work best.
+ * on multi-user systems. However, not specifying a directory results in the
+ * current directory to be c:\Windows\system32 on Windows 7. Use environment
+ * variables instead.
*/
-#define WORKDIR ""
+#define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
/*
* Create shortcut(s) in the Start Menu\Programs\Vim folder.