Skip to content

Commit 141e0a0

Browse files
author
mplieske
committed
modified browser helper
1 parent 479f900 commit 141e0a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/de/doubleslash/keeptime/common/BrowserHelper.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void openURL(final String url) {
1414
final Runtime rt = Runtime.getRuntime();
1515
if (System.getProperty("os.name").contains("Windows")) {
1616
try {
17-
rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
17+
rt.exec("rundll32 start " + url);
1818
} catch (final Exception e) {
1919
LOG.error(e.getMessage());
2020
}
@@ -32,4 +32,9 @@ public static void openURL(final String url) {
3232
}
3333
}
3434
}
35+
36+
public static void openFileInEditor(final String path) {
37+
final Runtime rt = Runtime.getRuntime();
38+
39+
}
3540
}

0 commit comments

Comments
 (0)