desktop

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package desktop opens files and folders through the desktop environment of the machine the Encore daemon runs on.

It exists for the developer dashboard's "open" and "reveal in file manager" actions.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoDesktop = errors.New("this machine has no desktop environment to open files in")

ErrNoDesktop reports that this machine has no desktop environment.

Functions

func Open

func Open(path string) error

Open launches path with the program the operating system has registered for it.

The program is detached from the daemon, so it outlives it.

func Reveal

func Reveal(path string) error

Reveal opens the file manager showing the directory holding path, with path selected. It accepts both files and directories.

Selecting the item isn't possible on every platform; see the platform files.

func Supported

func Supported() bool

Supported reports whether Open and Reveal can do anything on this machine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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