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:
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 &\"",
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,6 @@ func getPlatform() *Platform {
|
||||
shell: "cmd",
|
||||
shellArg: "/c",
|
||||
escapedQuote: "\\\"",
|
||||
openCommand: "cygstart {{filename}}",
|
||||
openCommand: "start {{filename}}",
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user