diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-01 20:10:24 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-01 20:25:30 +1100 |
commit | e8e59306fcd20fb9ef73424f07893bce32edd442 (patch) | |
tree | 10d133f22d46ce604fadcc1ac4dc172ce5fe7e4e /pkg/gui/custom_commands.go | |
parent | 8af3fe3b4ab46373440e5ec934964f05004f6727 (diff) |
shell out custom commands
Diffstat (limited to 'pkg/gui/custom_commands.go')
-rw-r--r-- | pkg/gui/custom_commands.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index f1fadeb5f..670d78df6 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -58,7 +58,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand config.CustomCommand } if customCommand.Subprocess { - gui.PrepareSubProcess(cmdStr) + gui.PrepareShellSubProcess(cmdStr) return nil } @@ -67,9 +67,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand config.CustomCommand loadingText = gui.Tr.LcRunningCustomCommandStatus } return gui.WithWaitingStatus(loadingText, func() error { - gui.OSCommand.PrepareSubProcess(cmdStr) - - if err := gui.OSCommand.RunCommand(cmdStr); err != nil { + if err := gui.OSCommand.RunShellCommand(cmdStr); err != nil { return gui.surfaceError(err) } return gui.refreshSidePanels(refreshOptions{}) |