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
|
||||
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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user