File: open.go

package info (click to toggle)
golang-github-twpayne-go-xdg 6.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 140 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 158 bytes parent folder | download
1
2
3
4
5
6
7
8
package xdg

import "os/exec"

// Open opens fileOrURL with xdg-open.
func Open(fileOrURL string) error {
	return exec.Command("xdg-open", fileOrURL).Run()
}