Fix the window icon and title for "Git Bash" when launched via shell extension
commit25d2d517da58257cfd63b9ecc671e402f95fd107
authorSebastian Schuberth <sschuberth@gmail.com>
Wed, 4 Nov 2009 02:14:44 +0000 (4 03:14 +0100)
committerSebastian Schuberth <sschuberth@gmail.com>
Wed, 4 Nov 2009 16:23:56 +0000 (4 17:23 +0100)
tree6dee94de9f4a79555bdc68db74bed6f2831e4fff
parentd39d93769638f4bcffa71ccebdf821755a368a9b
Fix the window icon and title for "Git Bash" when launched via shell extension

Windows sets the initial icon and title for command line windows to the icon
and name of the shortcut that launched the program. So, in order to get a
proper icon and title for "Git Bash Here", it needs to launch a shortcut. As
the Regitry's "command" key cannot launch shortcuts directly, we need a wrapper
in the form of a Visual Basic Script that uses the ShellExecute function to do
so. That script also changes the current directory as needed and launches a
special version of the "Git Bash" shortcut that does not set a working
directory, so the current directory is not overridden.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
share/WinGit/Git Bash.vbs [new file with mode: 0644]
share/WinGit/ReleaseNotes.rtf
share/WinGit/copy-files.sh
share/WinGit/install.iss