git-gui (Windows): use git-gui.exe in `Create Desktop Shortcut`
commitf110c46902859832f798fc6777ac6bd0e661804a
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 2 Oct 2016 21:19:47 +0000 (2 22:19 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 3 Oct 2016 10:03:47 +0000 (3 11:03 +0100)
tree2aedde504ccbe07bbad8c1c5cee9df6b853fd55c
parent577c7e8fc663bc0e31b10e8691f03c3361dedc51
git-gui (Windows): use git-gui.exe in `Create Desktop Shortcut`

When calling `Repository>Create Desktop Shortcut`, Git GUI assumes
that it is okay to call `wish.exe` directly on Windows. However, in
Git for Windows 2.x' context, that leaves several crucial environment
variables uninitialized, resulting in a shortcut that does not work.

To fix those environment variable woes, Git for Windows comes with a
convenient `git-gui.exe`, so let's just use it when it is available.

This fixes https://github.com/git-for-windows/git/issues/448

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/shortcut.tcl