1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

use start instead of cygstart to open files on windows

This commit is contained in:
Jesse Duffield
2018-09-01 12:22:33 +10:00
parent f127ae62bb
commit 04d5a473d7
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ func (c *OSCommand) OpenFile(filename string) error {
}
command := utils.ResolvePlaceholderString(commandTemplate, templateValues)
_, err := c.RunDirectCommand(command)
err := c.RunCommand(command)
return err
}

View File

@ -10,6 +10,6 @@ func getPlatform() *Platform {
shell: "bash",
shellArg: "-c",
escapedQuote: "\"",
openCommand: "xdg-open {{filename}} &>/dev/null &",
openCommand: "bash -c \"xdg-open {{filename}} &>/dev/null &\"",
}
}

View File

@ -6,6 +6,6 @@ func getPlatform() *Platform {
shell: "cmd",
shellArg: "/c",
escapedQuote: "\\\"",
openCommand: "cygstart {{filename}}",
openCommand: "start {{filename}}",
}
}