OpenFileFolder for linux
This commit is contained in:
parent
4fb35845b0
commit
4cd445bf77
@ -140,7 +140,12 @@ func (a *App) OpenFileFolder(path string) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
case "linux":
|
case "linux":
|
||||||
println("unsupported OS")
|
cmd := exec.Command("xdg-open", absPath)
|
||||||
|
err := cmd.Run()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
return errors.New("unsupported OS")
|
return errors.New("unsupported OS")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user