wine

package
v0.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT-0 Imports: 7 Imported by: 0

Documentation

Overview

Package wine provides support to run Windows programs under Wine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, args ...string) *exec.Cmd

Command returns the exec.Cmd struct to execute a Windows program using Wine.

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

CommandContext is like Command but includes a context.

func FromWindows

func FromWindows(path string) (string, error)

FromWindows translates a Windows (Wine) to a Unix path.

func Getenv

func Getenv(key string) (string, error)

Getenv retrieves the value of the Windows (Wine) environment variable named by the key.

func IsInstalled

func IsInstalled() bool

IsInstalled checks if Wine is installed.

func Shutdown

func Shutdown() (ex error)

Shutdown shuts down a persistent Wine server started by this package, and waits for it to complete.

func Startup

func Startup() error

Startup starts a persistent Wine server, which improves the performance and reliability of subsequent usages of Wine.

func ToWindows

func ToWindows(path string) (string, error)

ToWindows translates a Unix to a Windows (Wine) path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL