OpenFileFolder for linux

This commit is contained in:
josc146 2023-06-05 22:55:06 +08:00
parent 4fb35845b0
commit 4cd445bf77

View File

@ -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")
}