support foot terminal

This commit is contained in:
piotr
2021-11-21 21:45:10 +01:00
parent 2e305e6e52
commit 3d6f3e6e3c
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@@ -21,7 +21,7 @@ import (
"github.com/gotk3/gotk3/gtk"
)
const version = "0.2.1"
const version = "0.2.2"
var (
appDirs []string

View File

@@ -559,7 +559,13 @@ func launch(command string, terminal bool) {
cmd := exec.Command(elements[cmdIdx], elements[1+cmdIdx:]...)
if terminal {
args := []string{"-e", elements[cmdIdx]}
var args []string
if *term != "foot" {
args = []string{"-e", elements[cmdIdx]}
} else {
args = []string{elements[cmdIdx]}
}
cmd = exec.Command(*term, args...)
}