Merge pull request #35 from nwg-piotr/term

support for the foot terminal
This commit is contained in:
Piotr Miller
2021-11-29 00:47:33 +01:00
committed by GitHub
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" "github.com/gotk3/gotk3/gtk"
) )
const version = "0.2.1" const version = "0.2.2"
var ( var (
appDirs []string appDirs []string

View File

@@ -559,7 +559,13 @@ func launch(command string, terminal bool) {
cmd := exec.Command(elements[cmdIdx], elements[1+cmdIdx:]...) cmd := exec.Command(elements[cmdIdx], elements[1+cmdIdx:]...)
if terminal { 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...) cmd = exec.Command(*term, args...)
} }