...

Source file src/code.rocket9labs.com/tslocum/etk/platform_linux.go

Documentation: code.rocket9labs.com/tslocum/etk

     1  //go:build linux
     2  
     3  package etk
     4  
     5  import "os/exec"
     6  
     7  // Open opens a file, directory or URI using the default application registered
     8  // in the OS to handle it. Only URIs are supported on WebAssembly.
     9  func Open(target string) error {
    10  	cmd := exec.Command("xdg-open", target)
    11  	return cmd.Start()
    12  }
    13  

View as plain text