From 940b92926f0ea8c8c5ad933b2eb74b60fa276a85 Mon Sep 17 00:00:00 2001 From: Hans_Ryding Date: Mon, 25 Aug 2014 16:16:34 +0000 Subject: [PATCH] Added a comment: Relying on path is not best practice in a Windows environment --- ..._0d7a4f740180dff7c0853062e4913804._comment | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/bugs/Windows_build_has_hardcoded_paths/comment_5_0d7a4f740180dff7c0853062e4913804._comment diff --git a/doc/bugs/Windows_build_has_hardcoded_paths/comment_5_0d7a4f740180dff7c0853062e4913804._comment b/doc/bugs/Windows_build_has_hardcoded_paths/comment_5_0d7a4f740180dff7c0853062e4913804._comment new file mode 100644 index 0000000000..42537f9f46 --- /dev/null +++ b/doc/bugs/Windows_build_has_hardcoded_paths/comment_5_0d7a4f740180dff7c0853062e4913804._comment @@ -0,0 +1,22 @@ +[[!comment format=mdwn + username="Hans_Ryding" + ip="81.229.194.7" + subject="Relying on path is not best practice in a Windows environment" + date="2014-08-25T16:16:33Z" + content=""" +Unlike under POSIX environments +generally applications under windows don't add themselves to path, +or to a directory already in path. + +Generally applications announce their location using the registry. +Under either HKEY_LOCAL_MACHINE\SOFTWARE, +or in case of software installed for one particular user only +under HKEY_CURRENT_USER\SOFTWARE. + +Git however AFAIK does not. +Most likely the best thing to do is to prompt the user when installing git-annex +where git is, and store this variable. + +Note that in both my installs I installed git-annex into the git directory, +and the git-annex webapp still couldn't find it. +"""]]