Skip to content

Commit

Permalink
Remove quotes from command
Browse files Browse the repository at this point in the history
  • Loading branch information
gjhenrique committed Dec 29, 2022
1 parent bb36b84 commit eb0d5e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func getDesktopEntries() ([]*desktop.Entry, error) {

var dirs []string
customDir, ok := os.LookupEnv("YAFL_DESKTOP_DIR")

if ok {
dirs = []string{customDir}
} else {
Expand Down
4 changes: 4 additions & 0 deletions sh/sh.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const Delimiter = "\\x31"
func SpawnAsyncProcess(command []string, options string) error {
args := command[1:]

for i, arg := range args {
args[i] = strings.Trim(arg, "\"")
}

if options != "" {
args = append(args, options)
}
Expand Down

0 comments on commit eb0d5e2

Please sign in to comment.