module XdgBaseDirectory::Lookup

Overview

look up base directories

Defined in:

xdg_base_directory/lookup.cr

Constant Summary

DEFAULT_CONFIG_DIRS = "/etc/xdg"
DEFAULT_DATA_DIRS = "/usr/local/share/:/usr/share/"

Class Method Summary

Class Method Detail

def self.home #

The user's home directory


[View source]
def self.xdg_cache_home #

A single base directory relative to which user-specific non-essential (cached) data should be written.


[View source]
def self.xdg_config_dirs #

A set of preference ordered base directories relative to which configuration files should be searched.


[View source]
def self.xdg_config_home #

A single base directory relative to which user-specific configuration files should be written.


[View source]
def self.xdg_data_dirs #

A set of preference ordered base directories relative to which data files should be searched.


[View source]
def self.xdg_data_home #

A set of preference ordered base directories relative to which data files should be searched.


[View source]
def self.xdg_runtime_dir #

A single base directory relative to which user-specific runtime files and other file objects should be placed.


[View source]
def self.xdg_state_home #

$XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.


[View source]