diff options
| author | Jeff Carr <[email protected]> | 2024-02-12 15:23:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-12 15:23:10 -0600 |
| commit | 79d5ca71a8acb40baddb1bd3699058d36413d86e (patch) | |
| tree | 6f67a98980f6533785a0fcd212b106faf7a9cbf7 /run.go | |
| parent | 732102f7942ec8ad5d55bb023b9c87065848b204 (diff) | |
xdg-open() for buttons
Diffstat (limited to 'run.go')
| -rw-r--r-- | run.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -68,10 +68,17 @@ func RunPath(path string, args []string) bool { cmd.Dir = path cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr - println("path =", path, "cmd =", strings.Join(args, " ")) + log.Info("path =", path, "cmd =", strings.Join(args, " ")) if err := cmd.Run(); err != nil { // Handle error if the command execution fails - println("Error executing command:", err.Error()) + log.Info("RunPath() failed") + // log.Info("cmd.Enviorn =", cmd.Environ()) + out, outerr := cmd.Output() + log.Info("cmd.output =", out) + log.Info("cmd.output err=", outerr) + log.Info("path =", path) + log.Info("args =", args) + log.Info("err =", err.Error()) return false } return true |
