3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[spec] XDG Base Directory Specification

Last updated at Posted at 2017-07-03

PATH忘れるので、メモです。
Ubuntu 16.04 gnome-desktop上で確認。

Linuxは、$HOME/.foo
macOSは、$HOME/Library
が使われている。

とりあえず各Appは、 $HOME/.appname ではなく $HOME/.config/appname とかを使おうよ!
ls -a ~ で不要なものありすぎ!

environment variable path
$XDG_DATA_HOME $HOME/.local/share
$XDG_CONFIG_HOME $HOME/.config
$XDG_CACHE_HOME $HOME/.cache
$XDG_DATA_DIRS /usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
$XDG_CONFIG_DIRS /etc/xdg/xdg-gnome:/etc/xdg
$XDG_RUNTIME_DIR /run/user/(user id)

参照

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?