xdg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 4 Imported by: 0 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 xdg resolves lys-shell's XDG base directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() (string, bool)

CacheDir is lys-shell's cache directory, $XDG_CACHE_HOME/lys-shell or ~/.cache/lys-shell; false when neither variable is set.

func CacheHome

func CacheHome() (string, bool)

CacheHome is the user's cache directory itself, $XDG_CACHE_HOME or ~/.cache, where caches shared across apps live (the thumbnails); false when neither variable is set.

func DataDir

func DataDir() (string, bool)

DataDir is lys-shell's data directory, $XDG_DATA_HOME/lys-shell or ~/.local/share/lys-shell; false when neither variable is set.

func DataHome

func DataHome() (string, bool)

DataHome is the user's data directory itself, $XDG_DATA_HOME or ~/.local/share, where data shared across apps lives (the trash, the recently-used list); false when neither variable is set.

func StateDir

func StateDir() (string, bool)

StateDir is lys-shell's state directory, $XDG_STATE_HOME/lys-shell or ~/.local/state/lys-shell (wayle-core paths.rs state_dir); false when neither variable is set.

func UserDir

func UserDir(key string) (string, bool)

UserDir is a user directory from user-dirs.dirs (glib's g_get_user_special_dir): key is the name between XDG_ and _DIR (DOCUMENTS, PICTURES, ...), the value's $HOME expanded; false when the file or the key is missing, or the value is relative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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