Skip to content

Commit

Permalink
Merge pull request #35 from nwg-piotr/term
Browse files Browse the repository at this point in the history
support for the foot terminal
  • Loading branch information
nwg-piotr authored Nov 28, 2021
2 parents 2e305e6 + 3d6f3e6 commit 94c94b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file modified bin/nwg-drawer
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/gotk3/gotk3/gtk"
)

const version = "0.2.1"
const version = "0.2.2"

var (
appDirs []string
Expand Down
8 changes: 7 additions & 1 deletion tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

Expand Down

0 comments on commit 94c94b8

Please sign in to comment.