support foot terminal
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
2
main.go
2
main.go
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
||||
const version = "0.2.1"
|
||||
const version = "0.2.2"
|
||||
|
||||
var (
|
||||
appDirs []string
|
||||
|
||||
8
tools.go
8
tools.go
@@ -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...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user