Skip to content

Commit

Permalink
fix: fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich committed Apr 14, 2024
1 parent eb01a5a commit 975fbd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ synchronized void handleEditorOpenWindowEvent(EditorOpenWindowEvent event) {
try {
OpenConfigEditorCommandService openConfigEditorCommandService =
new OpenConfigEditorCommandService(
properties.getConfigRootPath(), properties.getConfigUserFilePath());
properties.getConfigDirectory());

if (commandExecutorService.getOSType() == SProcessExecutor.OS.MAC) {
ElementHelper.showAlert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ public class OpenConfigEditorCommandService extends SProcess {
private final String command;
private final SProcessExecutor.OS osType;

public OpenConfigEditorCommandService(String configRootPath, String configUserFilePath) {
public OpenConfigEditorCommandService(String configDirectory) {
this.osType = SProcessExecutor.getCommandExecutor().getOSType();

this.command =
switch (osType) {
case MAC -> String.format(
"open -eW %s",
Paths.get(System.getProperty("user.home"), configRootPath, configUserFilePath));
configDirectory);
case WINDOWS, UNIX, ANY -> null;
};
}
Expand Down

0 comments on commit 975fbd7

Please sign in to comment.