Skip to content

Instantly share code, notes, and snippets.

Created Mar 27, 2015
What would you like to do?
xdg-open chrome
package main
import (
func main() {
try := []string{"xdg-open", "google-chrome", "open"}
for _, bin := range try {
err := exec.Command(bin, "").Run()
if err == nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment