Skip to content

Commit ea693b1

Browse files
committed
Fix path for finding gtm exe on Windows
1 parent 32b4dfc commit ea693b1

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

resources/META-INF/plugin.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin version="2">
22
<id>io.edgeg.gtm.intellij</id>
33
<name>Git Time Metric</name>
4-
<version>1.0.1</version>
4+
<version>1.0.2</version>
55
<vendor email="gtm@edgeg.io" url="https://github.com/git-time-metric/gtm-jetbrains-plugin">Git Time Metric</vendor>
66

77
<description><![CDATA[
@@ -34,6 +34,12 @@ Consult the <a href=https://github.com/git-time-metric/gtm/blob/master/README.md
3434
]]></description>
3535

3636
<change-notes><![CDATA[
37+
1.0.2 - 7/21/2016<br />
38+
------------------------<br />
39+
<br />
40+
- Fix path for finding gtm executable on Windows<br />
41+
<br />
42+
<br />
3743
]]>
3844
</change-notes>
3945

src/io/edgeg/gtm/intellij/GTMRecord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public static Boolean initGtmExePath() {
9393
if (System.getProperty("os.name").startsWith("Windows")) {
9494
gtmExeName = "gtm.exe";
9595
gtmPath = new String[]{
96-
Paths.get(System.getenv("ProgramFiles"), "gtm", "bin").toString(),
97-
Paths.get(System.getenv("ProgramFiles(x86)"), "gtm", "bin").toString()};
96+
Paths.get(System.getenv("ProgramFiles"), "gtm").toString(),
97+
Paths.get(System.getenv("ProgramFiles(x86)"), "gtm").toString()};
9898
} else {
9999
gtmExeName = "gtm";
100100
gtmPath = new String[]{"/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin/"};

0 commit comments

Comments
 (0)