mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 09:04:01 +03:00
19 lines
460 B
Ruby
19 lines
460 B
Ruby
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
|
# While we're making this for NixOS, we're still following the spec in the
|
|
# actual source. Any deviation will be elsewhere.
|
|
module XDG
|
|
extend self
|
|
|
|
def config_dirs()
|
|
dirs = ENV["XDG_CONFIG_DIRS"]
|
|
dirs ||= "/etc/xdg"
|
|
dirs.split(":")
|
|
end
|
|
|
|
def data_dirs()
|
|
dirs = ENV["XDG_DATA_DIRS"]
|
|
dirs ||= "/usr/local/share/:/usr/share/"
|
|
dirs.split(":")
|
|
end
|
|
end
|