summaryrefslogtreecommitdiff
path: root/openBrowser.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-15 22:52:11 -0600
committerJeff Carr <[email protected]>2024-02-15 22:52:11 -0600
commitc9df5a7aceaecd7d2f022a6ebccc7b8a9909059b (patch)
tree8fd54055f0f44744dc53f346e42ecd46d7b45a14 /openBrowser.go
parent98730aed8ae78d41ee45f923b5110e1912f0a2fb (diff)
start deprecating and modernizing this codev0.20.8
Diffstat (limited to 'openBrowser.go')
-rw-r--r--openBrowser.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/openBrowser.go b/openBrowser.go
index 2977cef..23dbbf6 100644
--- a/openBrowser.go
+++ b/openBrowser.go
@@ -3,8 +3,6 @@ package shell
import (
"os/exec"
"runtime"
-
- "go.wit.com/log"
)
// openBrowser opens the specified URL in the default browser of the user.
@@ -24,19 +22,3 @@ func OpenBrowser(url string) error {
args = append(args, url)
return exec.Command(cmd, args...).Start()
}
-
-func Xterm(cmd string) {
- var tmp []string
- var argsXterm = []string{"nohup", "xterm", "-geometry", "120x40"}
- /*
- if xtermHold.Checked() {
- log.Println("hold = true")
- argsXterm = append(argsXterm, "-hold")
- } else {
- log.Println("hold = false")
- }
- */
- tmp = append(argsXterm, "-e", cmd)
- log.Info("xterm cmd=", tmp)
- go Run(tmp)
-}