desktop

package
v1.58.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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