「XDG Base Directory」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(→‎貢献: 翻訳)
(3人の利用者による、間の19版が非表示)
1行目: 1行目:
[[Category:ドットファイル]]
+
[[Category:Freedesktop.org]]
  +
[[Category:設定ファイル]]
 
[[en:XDG Base Directory support]]
 
[[en:XDG Base Directory support]]
 
{{Related articles start}}
 
{{Related articles start}}
 
{{Related|ドットファイル}}
 
{{Related|ドットファイル}}
{{Related|Xdg ユーザーディレクトリ}}
+
{{Related|XDG ユーザーディレクトリ}}
 
{{Related articles end}}
 
{{Related articles end}}
この記事では2003年に導入された [http://standards.freedesktop.org/basedir-spec/latest/ XDG Base Directory Specification] を使用しているソフトウェアを整理しています。ここでは一般的に使われているドットファイルと対応状態を並べて仕様がどれだけ使われているか示します。Base Directory Specification に対応していないソフトウェアについては、擬似的に対応させる方法を説明します。
+
この記事では2003年に導入された [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] を使用しているソフトウェアを整理しています。ここでは一般的に使われているドットファイルと対応状態を並べて仕様がどれだけ使われているか示します。Base Directory Specification に対応していないソフトウェアについては、擬似的に対応させる方法を説明します。
   
 
ただし[[環境変数]]やコンパイルオプションに保存されているコードを実行したり、ソースにパッチを適用したりする方法は除外します。設定はあくまでシステム間で相互運用できるべきでありコンパイルオプションを使ってしまうと使用が制限されるためです。
 
ただし[[環境変数]]やコンパイルオプションに保存されているコードを実行したり、ソースにパッチを適用したりする方法は除外します。設定はあくまでシステム間で相互運用できるべきでありコンパイルオプションを使ってしまうと使用が制限されるためです。
11行目: 12行目:
 
==XDG Base Directory Specification==
 
==XDG Base Directory Specification==
   
[http://standards.freedesktop.org/basedir-spec/latest/ フルスペック] を読んでください。このセクションでは概要だけを抽出しています。
+
[https://standards.freedesktop.org/basedir-spec/latest/ フルスペック] を読んでください。このセクションでは概要だけを抽出しています。
   
デフォルトでは [http://www.freedesktop.org/software/systemd/man/pam_systemd.html pam_systemd] によって {{ic|XDG_RUNTIME_DIR}} だけが設定されます。既存のディレクトリの絶対パスを使って明示的に他の変数を[[環境変数#変数の定義|定義]]するかどうかはユーザー次第です。{{Bug|31204}} や [https://lists.archlinux.org/pipermail/arch-general/2013-February/032980.html] を見てください
+
デフォルトでは [https://www.freedesktop.org/software/systemd/man/pam_systemd.html pam_systemd] によって {{ic|XDG_RUNTIME_DIR}} だけが設定されます。既存のディレクトリの絶対パスを使って明示的に他の変数を[[環境変数#変数の定義|定義]]するかどうかはユーザー次第です。
   
 
===ユーザーディレクトリ===
 
===ユーザーディレクトリ===
49行目: 50行目:
 
** {{ic|:}} でディレクトリを区切ります ({{ic|PATH}} と類似)。
 
** {{ic|:}} でディレクトリを区切ります ({{ic|PATH}} と類似)。
 
** デフォルトは {{ic|/etc/xdg}} です。
 
** デフォルトは {{ic|/etc/xdg}} です。
 
==例外==
 
 
以下のディレクトリやファイルには長い歴史があり、ファイルやディレクトリがそこにあると想定して書き込みを行うツールが存在するので変更されることはありません。
 
 
活発に開発あるいはメンテナンスを受けているツールもありますが、前述の理由により Base Directory Specification にあわせて開発者が変更を受け入れることはおそらくないでしょう。
 
 
; {{ic|~/.ssh}}
 
: DropBear や [[OpenSSH]] など多数の ssh デーモン・クライアントが使用しています。[https://bugzilla.mindrot.org/show_bug.cgi?id=2050 OpenSSH Bug 2050] を参照。
 
 
; {{ic|~/.pki}}
 
: Mozilla の [https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS NSS Project] が使用しているディレクトリ。
 
 
; {{ic|~/.netrc}}
 
: {{ic|~/.ssh}} と同じように、多数のプログラムが使用しています。curl ({{ic|CURLOPT_NETRC_FILE}}), ftp ({{ic|NETRC}}), s-nail ({{ic|NETRC}}) などのプロジェクトが該当します。ディレクトリを変更できる場合もありますが w3m, wget, lftp など多くのプログラムが設定に対応していません。
 
 
; {{ic|~/.profile}}
 
: 様々なシェルやディスプレイマネージャが使用しています。{{ic|~/.netrc}} と類似。
 
   
 
==貢献==
 
==貢献==
72行目: 55行目:
 
ソフトウェアを追加するときは適切なセクションを使ってください。
 
ソフトウェアを追加するときは適切なセクションを使ってください。
   
コードの評価 ([[vim]] や {{ic|VIMINIT}} など)、パッチやコンパイルオプションが必要な方法、あるいはハードコードと考えられる方法は載せるべきではありません。また、[https://www.haskell.org/cabal/ Haskell の cabal] や eclipse など難しい方法もハードコードとして扱います。
+
コードの評価 ([[vim]] や {{ic|VIMINIT}} など)、パッチやコンパイルオプションが必要な方法、あるいはハードコードと考えられる方法は載せるべきではありません。また、[https://www.haskell.org/cabal/ Haskell の cabal] や [[Eclipse]] など難しい方法もハードコードとして扱います。
   
 
* 1番目のカラムはプロジェクト名です。できればコマンド名にしてください。ソフトウェアのウェブサイトか適切な wiki の記事にリンクさせます。
 
* 1番目のカラムはプロジェクト名です。できればコマンド名にしてください。ソフトウェアのウェブサイトか適切な wiki の記事にリンクさせます。
  +
 
 
* 2番目のカラムはプロジェクトが使用するレガシーなファイルやディレクトリです。もはや読み込まれない場合でも確認できるように記述してください。
 
* 2番目のカラムはプロジェクトが使用するレガシーなファイルやディレクトリです。もはや読み込まれない場合でも確認できるように記述してください。
  +
 
 
* 3番目のカラムは XDG Base Directory に切り替わったプロジェクトのコミットあるいはバージョンです。4番目のカラムにはその議論がある場合にリンクを載せてください。
 
* 3番目のカラムは XDG Base Directory に切り替わったプロジェクトのコミットあるいはバージョンです。4番目のカラムにはその議論がある場合にリンクを載せてください。
  +
 
* 最後のカラムにはサポートしていないプロジェクトのための適切な対処方法を記載します。完結に書いてください。曖昧な部分がある場合は自由に追記してください。
+
* 最後のカラムにはサポートしていないプロジェクトのための適切な対処方法を記載します。簡潔に書いてください。曖昧な部分がある場合は自由に追記してください。
   
 
==サポートしているソフトウェア==
 
==サポートしているソフトウェア==
90行目: 73行目:
 
! 議論
 
! 議論
 
! ノート
 
! ノート
  +
|-
  +
| [https://github.com/SirCmpwn/aerc aerc]
  +
|
  +
|
  +
|
  +
|
 
|-
 
|-
 
| [https://github.com/Antimicro/antimicro/ antimicro]
 
| [https://github.com/Antimicro/antimicro/ antimicro]
103行目: 92行目:
 
|
 
|
 
|-
 
|-
  +
| [http://littlesvr.ca/asunder/ Asunder]
| [[beets]]
 
  +
| {{ic|~/.asunder}}
|
 
  +
|
 
  +
{{ic|~/.asunder_album_artist}}
|
 
  +
  +
{{ic|~/.asunder_album_genre}}
  +
  +
{{ic|~/.asunder_album_title}}
  +
| [https://littlesvr.ca/bugs/show_bug.cgi?id=31 2.9.0]
  +
| [https://littlesvr.ca/bugs/show_bug.cgi?id=52]
  +
| {{ic|~/.asunder}} は {{ic|XDG_CONFIG_HOME/asunder/asunder}} を、他の3つのファイルは {{ic|XDG_CACHE_HOME/asunder/asunder_album_...}} を使います。移行後も古いパスは削除されないため、手動で削除する必要があります。
 
|-
 
|-
| [http://www.blender.org/ blender]
+
| [[blender]]
 
| {{ic|~/.blender}}
 
| {{ic|~/.blender}}
 
| [http://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/4293f473 4293f473]
 
| [http://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/4293f473 4293f473]
132行目: 128行目:
 
|
 
|
 
|-
 
|-
  +
| [[PHP#Composer|composer]]
| [https://github.com/falconindy/cower cower]
 
  +
| {{ic|~/.composer}}
  +
| [https://github.com/composer/composer/releases/tag/1.0.0-beta1 1.0.0-beta1]
  +
| [https://github.com/composer/composer/pull/1407]
  +
|
  +
|-
  +
| [[AUR ヘルパー#ビルドと検索|cower]]
 
|
 
|
 
| [https://github.com/falconindy/cower/commit/8b70805 8b70805]
 
| [https://github.com/falconindy/cower/commit/8b70805 8b70805]
154行目: 156行目:
 
| [https://github.com/dolphin-emu/dolphin/commit/a498c68 a498c68]
 
| [https://github.com/dolphin-emu/dolphin/commit/a498c68 a498c68]
 
| [https://github.com/dolphin-emu/dolphin/pull/2304]
 
| [https://github.com/dolphin-emu/dolphin/pull/2304]
  +
|
  +
|-
  +
| [http://dr14tmeter.sourceforge.net dr14-meter]
 
|
 
|
  +
| [https://github.com/simon-r/dr14_t.meter/commit/7e777ca645298ec898b3c76e3ec472ed6ed43e8a 7e777ca64]
  +
| [https://github.com/simon-r/dr14_t.meter/pull/30]
  +
| ハードコード: {{ic|$HOME/.config/dr14meter}}。
 
|-
 
|-
  +
| [[dunst]]
| [http://www.knopwob.org/dunst/index.html dunst]
 
 
|
 
|
 
| [https://github.com/knopwob/dunst/commit/78b6e2b1 78b6e2b1]
 
| [https://github.com/knopwob/dunst/commit/78b6e2b1 78b6e2b1]
175行目: 183行目:
 
|-
 
|-
 
| [[fontconfig]]
 
| [[fontconfig]]
| {{ic|~/.fontconfig}}
+
| {{ic|~/.fontconfig}} {{ic|~/.fonts}}
| [http://cgit.freedesktop.org/fontconfig/commit/?id=8c255fb1 8c255fb1]
+
| [https://cgit.freedesktop.org/fontconfig/commit/?id=8c255fb1 8c255fb1]
|
 
 
|
 
|
  +
| フォントの保存には {{ic|"$XDG_DATA_HOME"/fonts}} を使ってください。
 
|-
 
|-
 
| [http://fontforge.github.io/ fontforge]
 
| [http://fontforge.github.io/ fontforge]
185行目: 193行目:
 
| [https://github.com/fontforge/fontforge/issues/847] [https://github.com/fontforge/fontforge/issues/991]
 
| [https://github.com/fontforge/fontforge/issues/847] [https://github.com/fontforge/fontforge/issues/991]
 
|
 
|
|-
 
| [[fontconfig]]
 
| {{ic|~/.fonts}}
 
|
 
|
 
| {{ic|"$XDG_DATA_HOME"/fonts}} を使用します。
 
 
|-
 
|-
 
| [http://www.freerdp.com/ freerdp]
 
| [http://www.freerdp.com/ freerdp]
196行目: 198行目:
 
| [https://github.com/FreeRDP/FreeRDP/commit/edf6e7258d edf6e7258d]
 
| [https://github.com/FreeRDP/FreeRDP/commit/edf6e7258d edf6e7258d]
 
|
 
|
  +
|
  +
|-
  +
| [[Gajim]]
  +
| {{ic|~/.gajim}}
  +
| [https://dev.gajim.org/gajim/gajim/commit/3e777ea8f120dc58d4e65ce501ab3ab3785a5d40 3e777ea]
  +
| [https://dev.gajim.org/gajim/gajim/issues/2149]
 
|
 
|
 
|-
 
|-
202行目: 210行目:
 
| [https://git.gnome.org/browse/gconf/commit/?id=fc28caa7 fc28caa7]
 
| [https://git.gnome.org/browse/gconf/commit/?id=fc28caa7 fc28caa7]
 
| [https://bugzilla.gnome.org/show_bug.cgi?id=674803]
 
| [https://bugzilla.gnome.org/show_bug.cgi?id=674803]
  +
|
  +
|-
  +
| [[GIMP]]
  +
| {{ic|~/.gimp-x.y}}
  +
{{ic|~/.thumbnails}}
  +
| [https://git.gnome.org/browse/gimp/commit/?id=60e0cfe 60e0cfe] [https://git.gnome.org/browse/gimp/commit/?id=483505f 483505f]
  +
| [https://bugzilla.gnome.org/show_bug.cgi?id=166643] [https://bugzilla.gnome.org/show_bug.cgi?id=646644]
 
|
 
|
 
|-
 
|-
210行目: 225行目:
 
|
 
|
 
|-
 
|-
| [[GStreamer|gstreamer-1.0]]
+
| [[GStreamer|gstreamer]]
  +
| {{ic|~/.gstreamer-0.10}}
|
 
| [http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4e36f93924cf 4e36f93924cf]
+
| [https://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4e36f93924cf 4e36f93924cf]
 
| [https://bugzilla.gnome.org/show_bug.cgi?id=518597]
 
| [https://bugzilla.gnome.org/show_bug.cgi?id=518597]
 
|
 
|
222行目: 237行目:
 
|
 
|
 
|-
 
|-
  +
| [[アプリケーション一覧/ユーティリティ#システム監視|htop]]
| [http://hisham.hm/htop/ htop]
 
 
| {{ic|~/.htoprc}}
 
| {{ic|~/.htoprc}}
 
| [https://github.com/hishamhm/htop/commit/93233a67 93233a67]
 
| [https://github.com/hishamhm/htop/commit/93233a67 93233a67]
234行目: 249行目:
 
|
 
|
 
|-
 
|-
| [http://i3wm.org/i3status/ i3status]
+
| [[i3|i3status]]
 
| {{ic|~/.i3status.conf}}
 
| {{ic|~/.i3status.conf}}
 
| [http://code.stapelberg.de/git/i3status/commit/?id=c3f7fc4994 c3f7fc4994]
 
| [http://code.stapelberg.de/git/i3status/commit/?id=c3f7fc4994 c3f7fc4994]
252行目: 267行目:
 
|
 
|
 
|-
 
|-
| [http://lftp.yar.ru/ lftp]
+
| [https://www.ctan.org/pkg/latexmk?lang=en latexmk]
  +
| {{ic|~/.latexmkrc}}
  +
|
  +
|
  +
|
  +
|-
  +
| [[アプリケーション一覧/インターネット#FTP クライアント|lftp]]
 
| {{ic|~/.lftp}}
 
| {{ic|~/.lftp}}
 
| [https://github.com/lavv17/lftp/commit/21dc400 21dc400]
 
| [https://github.com/lavv17/lftp/commit/21dc400 21dc400]
288行目: 309行目:
 
|
 
|
 
|-
 
|-
  +
| [[Mercurial]]
| [https://github.com/mintty/mintty mintty]
 
| {{ic|~/.minttyrc}}
+
| {{ic|~/.hgrc}}
  +
| [https://www.mercurial-scm.org/repo/hg/rev/354020079723 354020079723] [https://www.mercurial-scm.org/wiki/Release4.2 4.2]
| [https://github.com/mintty/mintty/commit/cff1bd8f cff1bd8f] v2.3.7.
 
  +
|
| [https://github.com/mintty/mintty/issues/525]
 
  +
| {{ic|XDG_CONFIG_HOME/hg/hgrc}}
  +
|-
  +
| [https://www.mesa3d.org/ mesa]
  +
|
  +
| [https://cgit.freedesktop.org/mesa/mesa/commit/?id=87ab26b2ab35a29d446ae66f1795d40c184c0739 87ab26b2ab]
  +
|
  +
| {{ic|XDG_CACHE_HOME/mesa}}
 
|-
 
|-
 
| [http://milkytracker.org/ milkytracker]
 
| [http://milkytracker.org/ milkytracker]
298行目: 326行目:
 
| [https://github.com/Deltafire/MilkyTracker/issues/12]
 
| [https://github.com/Deltafire/MilkyTracker/issues/12]
 
|
 
|
  +
|-
  +
| [https://github.com/mintty/mintty mintty]
  +
| {{ic|~/.minttyrc}}
  +
| [https://github.com/mintty/mintty/commit/cff1bd8f cff1bd8f] v2.3.7
  +
| [https://github.com/mintty/mintty/issues/525]
 
|-
 
|-
 
| [[mpd]]
 
| [[mpd]]
311行目: 344行目:
 
|
 
|
 
|-
 
|-
  +
| [[mutt]]
| [http://mypaint.intilinux.com/ mypaint]
 
  +
| {{ic|~/.mutt}}
  +
| [https://dev.mutt.org/trac/changeset/42fee7585f 42fee7585f]
  +
| [http://dev.mutt.org/trac/ticket/3207]
  +
|
  +
|-
  +
| [[アプリケーション一覧/マルチメディア#ラスタ画像|mypaint]]
 
| {{ic|~/.mypaint}}
 
| {{ic|~/.mypaint}}
 
| [https://github.com/mypaint/mypaint/commit/cf723b74cd cf723b74cd]
 
| [https://github.com/mypaint/mypaint/commit/cf723b74cd cf723b74cd]
 
|
 
|
  +
|
  +
|-
  +
| [[nano]]
  +
| {{ic|~/.nano/}} {{ic|~/.nanorc}}
  +
| [http://git.savannah.gnu.org/cgit/nano.git/commit/?id=c16e79b612eb8e061a4bd0b5f187c37a036fc403 036fc403]
  +
| [https://savannah.gnu.org/patch/?8523]
 
|
 
|
 
|-
 
|-
334行目: 379行目:
 
| [https://github.com/akrennmair/newsbeuter/pull/39]
 
| [https://github.com/akrennmair/newsbeuter/pull/39]
 
| {{ic|"$XDG_DATA_HOME"/newsbeuter}} と {{ic|"$XDG_CONFIG_HOME"/newsbeuter}} を作成する必要があります [http://newsbeuter.org/doc/newsbeuter.html#_xdg_base_directory_support]。
 
| {{ic|"$XDG_DATA_HOME"/newsbeuter}} と {{ic|"$XDG_CONFIG_HOME"/newsbeuter}} を作成する必要があります [http://newsbeuter.org/doc/newsbeuter.html#_xdg_base_directory_support]。
  +
|-
  +
| [[NVIDIA]]
  +
| {{ic|~/.nv}}
  +
|
  +
|
  +
|
 
|-
 
|-
 
| [[OfflineIMAP]]
 
| [[OfflineIMAP]]
344行目: 395行目:
 
| {{ic|~/.opentyrian}}
 
| {{ic|~/.opentyrian}}
 
| [https://bitbucket.org/opentyrian/opentyrian/commits/8d45ff2 8d45ff2]
 
| [https://bitbucket.org/opentyrian/opentyrian/commits/8d45ff2 8d45ff2]
| [https://web.archive.org/web/20140815181350/http://code.google.com/p/opentyrian/issues/detail?id=125]
+
| [https://web.archive.org/web/20140815181350/https://code.google.com/p/opentyrian/issues/detail?id=125]
 
|
 
|
 
|-
 
|-
351行目: 402行目:
 
| [https://github.com/PCSX2/pcsx2/commit/87f1e8f77 87f1e8f77] [https://github.com/PCSX2/pcsx2/commit/a9020c606 a9020c606] [https://github.com/PCSX2/pcsx2/commit/3b22f0fb0 3b22f0fb0] [https://github.com/PCSX2/pcsx2/commit/0a012aec2 0a012aec2]
 
| [https://github.com/PCSX2/pcsx2/commit/87f1e8f77 87f1e8f77] [https://github.com/PCSX2/pcsx2/commit/a9020c606 a9020c606] [https://github.com/PCSX2/pcsx2/commit/3b22f0fb0 3b22f0fb0] [https://github.com/PCSX2/pcsx2/commit/0a012aec2 0a012aec2]
 
| [https://github.com/PCSX2/pcsx2/issues/352] [https://github.com/PCSX2/pcsx2/issues/381]
 
| [https://github.com/PCSX2/pcsx2/issues/352] [https://github.com/PCSX2/pcsx2/issues/381]
  +
|
  +
|-
  +
| [[pip]]
  +
| {{ic|~/.pip}}
  +
| [https://github.com/pypa/pip/blob/548a9136525815dff41acd845c558a0b36eb1c5f/NEWS.rst#60-2014-12-22 6.0]
  +
| [https://github.com/pypa/pip/issues/1733]
 
|
 
|
 
|-
 
|-
357行目: 414行目:
 
| [https://github.com/hrydgard/ppsspp/commit/132fe47c7d 132fe47c7d]
 
| [https://github.com/hrydgard/ppsspp/commit/132fe47c7d 132fe47c7d]
 
| [https://github.com/hrydgard/ppsspp/issues/4623]
 
| [https://github.com/hrydgard/ppsspp/issues/4623]
  +
|
  +
|-
  +
| {{pkg|procps-ng}}
  +
| {{ic|~/.toprc}}
  +
| [https://gitlab.com/procps-ng/procps/commit/af53e170b9 af53e170b9]
  +
| [https://gitlab.com/procps-ng/procps/merge_requests/38] [https://bugzilla.redhat.com/show_bug.cgi?id=1155265]
 
|
 
|
 
|-
 
|-
369行目: 432行目:
 
| [https://projects.archlinux.org/pacman.git/commit/?id=80eca94c8 80eca94c8]
 
| [https://projects.archlinux.org/pacman.git/commit/?id=80eca94c8 80eca94c8]
 
| [https://mailman.archlinux.org/pipermail/pacman-dev/2014-July/019178.html]
 
| [https://mailman.archlinux.org/pipermail/pacman-dev/2014-July/019178.html]
  +
|
  +
|-
  +
| [https://github.com/panda3d/panda3d Panda3D]
  +
| {{ic|~/.panda3d}}
  +
| [https://github.com/panda3d/panda3d/commit/2b537d2 2b537d2]
  +
|
 
|
 
|
 
|-
 
|-
 
| [[PulseAudio]]
 
| [[PulseAudio]]
 
| {{ic|~/.pulse}} {{ic|~/.pulse-cookie}}
 
| {{ic|~/.pulse}} {{ic|~/.pulse-cookie}}
| [http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=59a8618dcd9 59a8618dcd9] [http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=87ae8307057 87ae8307057] [http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=9ab510a6921 9ab510a6921] [http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=4c195bcc9d5 4c195bcc9d5]
+
| [https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=59a8618dcd9 59a8618dcd9] [https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=87ae8307057 87ae8307057] [https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=9ab510a6921 9ab510a6921] [https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=4c195bcc9d5 4c195bcc9d5]
 
| [https://bugzilla.redhat.com/show_bug.cgi?id=845607]
 
| [https://bugzilla.redhat.com/show_bug.cgi?id=845607]
 
|
 
|
394行目: 463行目:
 
| [https://github.com/qtile/qtile/pull/835]
 
| [https://github.com/qtile/qtile/pull/835]
 
| 仕様と異なるファイルやディレクトリを作成するバーウィジェットも存在しますが、大抵の場合は設定で変更できます。
 
| 仕様と異なるファイルやディレクトリを作成するバーウィジェットも存在しますが、大抵の場合は設定で変更できます。
  +
|-
  +
| {{Pkg|rclone}}
  +
| {{ic|~/.rclone.conf}}
  +
| [https://github.com/ncw/rclone/commit/9d362589 9d362589]
  +
| [https://github.com/ncw/rclone/issues/868]
  +
|
 
|-
 
|-
 
| [[RetroArch|retroarch]]
 
| [[RetroArch|retroarch]]
405行目: 480行目:
 
| [https://github.com/mozilla/rr/commit/02e7d41e 02e7d41e]
 
| [https://github.com/mozilla/rr/commit/02e7d41e 02e7d41e]
 
| [https://github.com/mozilla/rr/issues/1455]
 
| [https://github.com/mozilla/rr/issues/1455]
|
+
|
  +
|-
  +
| [[rTorrent]]
  +
| {{ic|~/.rtorrent.rc}}
  +
| [https://github.com/rakshasa/rtorrent/commit/6a8d332b 6a8d332b]
  +
|
  +
|-
  +
| [[Skype]]
  +
| {{ic|~/.Skype}}
  +
| 8.0
  +
|
  +
|
  +
|-
  +
| [http://www.snes9x.com/ Snes9x]
  +
| {{ic|~/.snes9x}}
  +
| [https://github.com/snes9xgit/snes9x/commit/93b5f11641fa22d4518f251d6e3db99219864677 19864677]
  +
| [https://github.com/snes9xgit/snes9x/issues/194]
  +
| デフォルトの設定は空です。ROM を起動する前にユーザーが GUI や手動で設定するようになっています。
  +
|-
  +
| {{AUR|sublime-text-dev}}
  +
|
  +
|
  +
|
  +
| キャッシュは {{ic|$XDG_CACHE_HOME/sublime-text-3}} ではなく {{ic|$XDG_CONFIG_HOME/sublime-text-3/Cache}} に保存されます。
 
|-
 
|-
 
| [[surfraw]]
 
| [[surfraw]]
429行目: 527行目:
 
|
 
|
 
|
 
|
  +
|
  +
|-
  +
| [https://github.com/tmuxinator/tmuxinator tmuxinator]
  +
| {{ic|~/.tmuxinator}}
  +
| [https://github.com/tmuxinator/tmuxinator/pull/511/commits/263692349f1142c0edcacfbefae541cbc0e7b44e 2636923]
  +
| [https://github.com/tmuxinator/tmuxinator/pull/511]
 
|
 
|
 
|-
 
|-
439行目: 543行目:
 
| [https://www.kernel.org/pub/linux/utils/util-linux/ util-linux]
 
| [https://www.kernel.org/pub/linux/utils/util-linux/ util-linux]
 
|
 
|
| [http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=570b32100 570b32100]
+
| [https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=570b32100 570b32100]
 
|
 
|
  +
|
  +
|-
  +
| [[uzbl]]
  +
|
  +
| [https://github.com/uzbl/uzbl/commit/c6fd63a c6fd63a]
  +
| [https://github.com/uzbl/uzbl/pull/150]
 
|
 
|
 
|-
 
|-
447行目: 557行目:
 
|
 
|
 
|
 
|
  +
|
  +
|-
  +
| [[VirtualBox]]
  +
| {{ic|~/.VirtualBox}}
  +
| [https://www.virtualbox.org/ticket/5099?action=diff&version=7 4.3]
  +
| [https://www.virtualbox.org/ticket/5099]
  +
|
  +
|-
  +
| [http://martanne.github.io/vis/ vis]
  +
| {{ic|~/.vis}}
  +
| [https://github.com/martanne/vis/pull/303]
  +
| [https://github.com/martanne/vis/commit/68a25c751c0219ef5df589a19513e46a08965d5a 68a25c75]
  +
[https://github.com/martanne/vis/commit/d138908cf8149eb10120957271cd6979272b4730 d138908c]
 
|
 
|
 
|-
 
|-
453行目: 576行目:
 
| [http://git.videolan.org/?p=vlc.git;a=commit;h=16f32e1500887c0dcd33cb06ad71759a81a52878 16f32e15]
 
| [http://git.videolan.org/?p=vlc.git;a=commit;h=16f32e1500887c0dcd33cb06ad71759a81a52878 16f32e15]
 
| [https://trac.videolan.org/vlc/ticket/1267]
 
| [https://trac.videolan.org/vlc/ticket/1267]
  +
|
  +
|-
  +
| [https://www.warsow.gg/ warsow]
  +
| {{ic|~/.warsow-2.x}}
  +
| [https://github.com/Qfusion/qfusion/commit/98ece3f 98ece3f]
  +
| [https://github.com/Qfusion/qfusion/issues/298]
 
|
 
|
 
|-
 
|-
467行目: 596行目:
 
|
 
|
 
|-
 
|-
  +
| [[xmonad]]
| [https://www.warsow.gg/ warsow]
 
| {{ic|~/.warsow-2.x}}
+
| {{ic|~/.xmonad}}
| [https://github.com/Qfusion/qfusion/commit/98ece3f 98ece3f]
+
| [https://github.com/xmonad/xmonad/commit/40fc10b6a5682ce1d6ba7f0679962926ef6cfade 40fc10b6]
| [https://github.com/Qfusion/qfusion/issues/298]
+
| [https://github.com/xmonad/xmonad/issues/61] [https://code.google.com/p/xmonad/issues/detail?id=484]
  +
| {{ic|XMONAD_CONFIG_HOME}}, {{ic|XMONAD_DATA_HOME}}, {{ic|XMONAD_CACHE_HOME}} 環境変数が使えます。
|
 
 
|-
 
|-
  +
| [http://www.vergenet.net/~conrad/software/xsel/ xsel]
| [[uzbl]]
 
  +
| {{ic|~/.xsel.log}}
|
 
| [https://github.com/uzbl/uzbl/pull/150]
+
| [https://github.com/kfish/xsel/commit/ee7b48111be2e2117b201962e9d1c0e1f9804ed4 ee7b4811]
| [https://github.com/uzbl/uzbl/commit/c6fd63a c6fd63a]
+
| [https://github.com/kfish/xsel/issues/10]
 
|
 
|
 
|}
 
|}
492行目: 621行目:
 
|
 
|
 
|
 
|
| {{ic|$ abook --config "$XDG_CONFIG_HOME"/abook/abookrc \
+
| {{ic|$ abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_CACHE_HOME"/abook/addressbook}}
  +
|-
--datafile "$XDG_CACHE_HOME"/abook/addressbook}}
 
  +
| [[Anki]]
  +
| {{ic|~/Anki}} {{ic|~/Documents/Anki}}
  +
|
  +
| [https://github.com/dae/anki/pull/49] [https://github.com/dae/anki/pull/58]
  +
| {{ic|1=$ anki -b "$XDG_DATA_HOME"/Anki}}
  +
|-
  +
| [[aspell]]
  +
| {{ic|~/.aspell.conf}}
  +
|
  +
|
  +
| {{ic|1=$ export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $XDG_CONFIG_HOME/aspell/en.pws; repl $XDG_CONFIG_HOME/aspell/en.prepl"}}
 
|-
 
|-
 
| [[Atom]]
 
| [[Atom]]
 
| {{ic|~/.atom}}
 
| {{ic|~/.atom}}
 
|
 
|
  +
| [https://github.com/atom/atom/issues/8281]
|
 
 
| {{ic|1=$ export ATOM_HOME="$XDG_DATA_HOME"/atom}}
 
| {{ic|1=$ export ATOM_HOME="$XDG_DATA_HOME"/atom}}
 
|-
 
|-
  +
| {{pkg|aws-cli}}
| [[aspell]]
 
| {{ic|~/.aspell.conf}}
+
| {{ic|~/.aws}}
  +
| [https://github.com/aws/aws-cli/commit/fc5961ea2cc0b5976ac9f777e20e4236fd7540f5 1.7.45]
  +
| [https://github.com/aws/aws-cli/issues/2433]
  +
| {{ic|1=$ export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials}}
  +
  +
{{ic|1=$ export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config}}
  +
|-
  +
| {{pkg|bash-completion}}
  +
| {{ic|~/.bash_completion}}
 
|
 
|
  +
|
  +
| {{ic|1=$ export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME"/bash-completion/bash_completion}}
  +
|-
  +
| [[bazaar]]
  +
| {{ic|~/.bazaar}}
  +
  +
{{ic|~/.bzr.log}}
  +
| [https://bugs.launchpad.net/bzr/+bug/195397/comments/15 2.3.0]
  +
| [https://bugs.launchpad.net/bzr/+bug/195397]
  +
| 上流のバグレポートでは bazaar が {{ic|~/.config/bazaar}} を使うようにする議論があります。ただしログファイルは {{ic|~/.bzr.log}} に書き込まれます。
 
|
 
|
  +
|-
  +
| [[Ruby#Bundler|Bundler]]
  +
| {{ic|~/.bundle}}
 
|
 
|
  +
| [https://github.com/bundler/bundler/pull/6024] [https://github.com/bundler/bundler/issues/4333]
  +
| {{ic|1=$ export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle}}
 
|-
 
|-
 
| [[Rust#Cargo|cargo]]
 
| [[Rust#Cargo|cargo]]
 
| {{ic|~/.cargo}}
 
| {{ic|~/.cargo}}
 
|
 
|
| [https://github.com/rust-lang/cargo/pull/148] [https://github.com/rust-lang/cargo/issues/1734]
+
| [https://github.com/rust-lang/cargo/pull/148] [https://github.com/rust-lang/cargo/issues/1734] [https://github.com/rust-lang/rfcs/pull/1615] [https://github.com/rust-lang/cargo/pull/5183]
 
| {{ic|1=$ export CARGO_HOME="$XDG_DATA_HOME"/cargo}}
 
| {{ic|1=$ export CARGO_HOME="$XDG_DATA_HOME"/cargo}}
 
|-
 
|-
518行目: 681行目:
 
|
 
|
 
| {{ic|1=$ export CCACHE_DIR="$XDG_CACHE_HOME"/ccache}}
 
| {{ic|1=$ export CCACHE_DIR="$XDG_CACHE_HOME"/ccache}}
  +
|-
  +
| [https://github.com/cisco/ChezScheme ChezScheme]
  +
| {{ic|~/.chezscheme_history}}
  +
|
  +
|
  +
| {{ic|1=$ petite --eehistory "$XDG_DATA_HOME"/chezscheme/history}}
 
|-
 
|-
 
| [[conky]]
 
| [[conky]]
525行目: 694行目:
 
| {{ic|1=$ conky --config="$XDG_CONFIG_HOME"/conky/conkyrc}}
 
| {{ic|1=$ conky --config="$XDG_CONFIG_HOME"/conky/conkyrc}}
 
|-
 
|-
  +
| [[coreutils]]
| [http://www.dungeoncrawl.org/ crawl]
 
| {{ic|~/.crawl}}
+
| {{ic|~/.dircolors}}
 
|
 
|
 
|
 
|
  +
| {{ic|$ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"}}
| {{ic|1=$ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/ # Trailing '/' is required.}}
 
 
|-
 
|-
  +
| [http://www.dungeoncrawl.org/ crawl]
| [[PHP#Composer|composer]]
 
| {{ic|~/.composer}}
+
| {{ic|~/.crawl}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export COMPOSER_HOME="$XDG_CONFIG_HOME"/composer
+
| 末尾の '/' は必須です: {{ic|1=$ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/}}。
$ export COMPOSER_CACHE_DIR="$XDG_CACHE_HOME"/composer}}
 
 
|-
 
|-
| [[coreutils]]
+
| [[CUDA]]
| {{ic|~/.dircolors}}
+
| {{ic|~/.nv}}
 
|
 
|
 
|
 
|
| {{ic|$ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"}}
+
| {{ic|1=$ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
 
|-
 
|-
  +
| [[dict]]
| [http://sourceforge.net/projects/dict/ dict]
 
 
| {{ic|~/.dictrc}}
 
| {{ic|~/.dictrc}}
 
|
 
|
559行目: 727行目:
 
| {{ic|~/.emscripten}} {{ic|~/.emscripten_sanity}} {{ic|~/.emscripten_ports}} {{ic|~/.emscripten_cache__last_clear}}
 
| {{ic|~/.emscripten}} {{ic|~/.emscripten_sanity}} {{ic|~/.emscripten_ports}} {{ic|~/.emscripten_cache__last_clear}}
 
|
 
|
| [https://github.com/kripken/emscripten/issues/3624 3624]
+
| [https://github.com/kripken/emscripten/issues/3624]
 
| {{ic|1=$ export EM_CONFIG="$XDG_CONFIG_HOME"/emscripten/config}}
 
| {{ic|1=$ export EM_CONFIG="$XDG_CONFIG_HOME"/emscripten/config}}
 
{{ic|1=$ export EM_CACHE="$XDG_CACHE_HOME"/emscripten/cache}}
 
{{ic|1=$ export EM_CACHE="$XDG_CACHE_HOME"/emscripten/cache}}
565行目: 733行目:
 
{{ic|$ emcc --em-config "$XDG_CONFIG_HOME"/emscripten/config --em-cache "$XDG_CACHE_HOME"/emscripten/cache}}
 
{{ic|$ emcc --em-config "$XDG_CONFIG_HOME"/emscripten/config --em-cache "$XDG_CACHE_HOME"/emscripten/cache}}
 
|-
 
|-
  +
| [https://www.freecadweb.org/ freecad]
| [[PulseAudio]]
 
| {{ic|~/.esd_auth}}
+
| {{ic|~/.FreeCAD}}
 
|
 
|
  +
| [https://www.freecadweb.org/tracker/view.php?id=2956]
|
 
  +
| {{ic|1=$ freecad -u "$XDG_CONFIG_HOME"/FreeCAD/user.cfg -s "$XDG_CONFIG_HOME"/FreeCAD/system.cfg}}
| {{ic|module-esound-protocol-unix.so}} モジュールによって生成されます。別の場所を使用するように設定することもできますが {{ic|/etc/pulse/default.pa}} や {{ic|"$XDG_CONFIG_HOME"/pulse/default.pa}} でモジュールをコメントアウトしてしまう方が簡単です。
 
 
|-
 
|-
| [http://www.gnu.org/software/gdb/ gdb]
+
| [https://www.gnu.org/software/gdb/ gdb]
 
| {{ic|~/.gdbinit}}
 
| {{ic|~/.gdbinit}}
 
|
 
|
 
|
 
|
| {{ic|$ gdb -nh -x "$XDG_CONFIG_HOME"/gdb/init}}
+
| {{ic|1=$ gdb -nh -x "$XDG_CONFIG_HOME"/gdb/init}}
 
|-
 
|-
  +
| [https://github.com/get-iplayer/get_iplayer get_iplayer]
| [[GIMP]]
 
| {{ic|~/.gimp-2.8}}
+
| {{ic|~/.get_iplayer}}
  +
|
| [https://git.gnome.org/browse/gimp/commit/?id=60e0cfe 60e0cfe]
 
  +
|
| [https://bugzilla.gnome.org/show_bug.cgi?id=166643] [https://mail.gnome.org/archives/gimp-developer-list/2012-October/msg00028.html]
 
| {{ic|1=$ export GIMP2_DIRECTORY="$XDG_CONFIG_HOME"/gimp}}
+
| {{ic|1=$ export GETIPLAYERUSERPREFS="$XDG_DATA_HOME"/get_iplayer}}
  +
|-
  +
| [[getmail]]
  +
| {{ic|~/.getmail/getmailrc}}
  +
|
  +
|
  +
| {{ic|1=$ getmail --rcfile="$XDG_CONFIG_HOME/getmail/getmailrc" --getmaildir="$XDG_DATA_HOME/getmail"}}
 
|-
 
|-
 
| [http://guichaz.free.fr/gliv/ gliv]
 
| [http://guichaz.free.fr/gliv/ gliv]
592行目: 766行目:
 
| {{ic|~/.gnupg}}
 
| {{ic|~/.gnupg}}
 
|
 
|
  +
| [https://bugs.gnupg.org/gnupg/issue1456] [https://bugs.gnupg.org/gnupg/issue1018]
|
 
 
| {{ic|1=$ export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg}}
 
| {{ic|1=$ export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg}}
 
{{ic|$ gpg2 --homedir "$XDG_CONFIG_HOME"/gnupg}}
 
{{ic|$ gpg2 --homedir "$XDG_CONFIG_HOME"/gnupg}}
 
|-
 
|-
| [[GTK+|gtk2]]
+
| [[Google Earth]]
| {{ic|~/.gtkrc-2.0}}
+
| {{ic|~/.googleearth}}
 
|
 
|
 
|
 
|
  +
| {{ic|~/.config/Google/GoogleEarthPlus.conf}} の {{ic|KMLPath}} や {{ic|CachePath}} オプションで一部のパスは変更できます。
| {{ic|1=$ export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc}}
 
  +
|-
  +
| [https://sourceforge.net/projects/gqclient GQ LDAP クライアント]
  +
| {{ic|~/.gq}}
  +
{{ic|~/.gq-state}}
  +
| [https://sourceforge.net/p/gqclient/mailman/message/2053978 1.51]
  +
|
  +
| {{ic|1=$ export GQRC="$XDG_CONFIG_HOME"/gqrc}}
  +
  +
{{ic|1=$ export GQSTATE="$XDG_DATA_HOME"/gq/gq-state}}
  +
  +
{{ic|1=$ mkdir -p "$(dirname "$GQSTATE")"}}
  +
|-
  +
| [https://gradle.org/ gradle]
  +
| {{ic|~/.gradle}}
  +
|
  +
| [https://discuss.gradle.org/t/be-a-nice-freedesktop-citizen-move-the-gradle-to-the-appropriate-location-in-linux/2199]
  +
| {{ic|1=$ export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle}}
 
|-
 
|-
 
| [[GTK+|gtk]]
 
| [[GTK+|gtk]]
607行目: 798行目:
 
|
 
|
 
| {{ic|1=$ export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc}}
 
| {{ic|1=$ export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc}}
  +
|-
  +
| [[GTK+|gtk2]]
  +
| {{ic|~/.gtkrc-2.0}}
  +
|
  +
|
  +
| {{ic|1=$ export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc}}
 
|-
 
|-
 
| [http://httpie.org httpie]
 
| [http://httpie.org httpie]
613行目: 810行目:
 
| [https://github.com/jakubroztocil/httpie/issues/145]
 
| [https://github.com/jakubroztocil/httpie/issues/145]
 
| {{ic|1=$ export HTTPIE_CONFIG_DIR="$XDG_CONFIG_HOME"/httpie}}
 
| {{ic|1=$ export HTTPIE_CONFIG_DIR="$XDG_CONFIG_HOME"/httpie}}
|-
 
 
| [[irssi]]
 
| {{ic|~/.irssi}}
 
|
 
| [https://github.com/irssi/irssi/pull/511]
 
| {{ic|1=irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi}}
 
 
|-
 
|-
 
| [http://ipython.org ipython]/[[jupyter]]
 
| [http://ipython.org ipython]/[[jupyter]]
628行目: 818行目:
 
{{ic|1=$ export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter}}
 
{{ic|1=$ export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter}}
 
|-
 
|-
  +
| [[irssi]]
| [http://isync.sourceforge.net isync]
 
  +
| {{ic|~/.irssi}}
  +
|
  +
| [https://github.com/irssi/irssi/pull/511]
  +
| {{ic|1=irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi}}
  +
|-
  +
| [[isync]]
 
| {{ic|~/.mbsyncrc}}
 
| {{ic|~/.mbsyncrc}}
 
|
 
|
634行目: 830行目:
 
| {{ic|$ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc}}
 
| {{ic|$ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc}}
 
|-
 
|-
  +
| [[Java]] (OpenJDK)
| [ftp://www.x.org/pub/xorg/current/doc/libICE/ice.html libice]
 
| {{ic|~/.ICEauthority}}
+
| {{ic|~/.java/.userPrefs}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export ICEAUTHORITY="$XDG_RUNTIME_DIR"/X11/iceauthority}}
+
| {{ic|1=$ export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java}}
 
|-
 
|-
  +
| [[less]]
| [http://www.greenwoodsoftware.com/less/ less]
 
 
| {{ic|~/.lesshst}}
 
| {{ic|~/.lesshst}}
 
|
 
|
655行目: 851行目:
 
| [https://mailman.videolan.org/pipermail/libdvdcss-devel/2014-August/001022.html]
 
| [https://mailman.videolan.org/pipermail/libdvdcss-devel/2014-August/001022.html]
 
| {{ic|1=$ export DVDCSS_CACHE="$XDG_DATA_HOME"/dvdcss}}
 
| {{ic|1=$ export DVDCSS_CACHE="$XDG_DATA_HOME"/dvdcss}}
  +
|-
  +
| [ftp://www.x.org/pub/xorg/current/doc/libICE/ice.html libice]
  +
| {{ic|~/.ICEauthority}}
  +
|
  +
| [https://bugs.freedesktop.org/show_bug.cgi?id=49173]
  +
| {{ic|1=$ export ICEAUTHORITY="$XDG_RUNTIME_DIR"/ICEauthority}}
  +
パーミッションには注意してください。例えば {{pkg|gdm}} からユーザーの {{ic|ICEauthority}} ファイルにアクセスする必要があります。
  +
|-
  +
| [[Xorg|libx11]]
  +
| {{ic|~/.XCompose}} {{ic|~/.compose-cache}}
  +
|
  +
|
  +
| {{ic|1=$ export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose}}
  +
{{ic|1=$ export XCOMPOSECACHE="$XDG_CACHE_HOME"/X11/xcompose}}
 
|-
 
|-
 
| [http://ltrace.org/ ltrace]
 
| [http://ltrace.org/ ltrace]
661行目: 871行目:
 
|
 
|
 
| {{ic|$ ltrace -F "$XDG_CONFIG_HOME"/ltrace/ltrace.conf}}
 
| {{ic|$ ltrace -F "$XDG_CONFIG_HOME"/ltrace/ltrace.conf}}
  +
|-
  +
| {{pkg|maven}}
  +
| {{ic|~/.m2}}
  +
|
  +
|
  +
| {{ic|1=$ mvn -gs "$XDG_CONFIG_HOME"/maven/settings.xml}}
  +
{{hc|[http://maven.apache.org/settings.html settings.xml]|<nowiki><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  +
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  +
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
  +
https://maven.apache.org/xsd/settings-1.0.0.xsd">
  +
...
  +
<localRepository>${env.XDG_CACHE_HOME}/maven/repository</localRepository>
  +
...
  +
</settings></nowiki>}}
 
|-
 
|-
 
| [[Mathematica]]
 
| [[Mathematica]]
680行目: 904行目:
 
| {{ic|$ mocp -M "$XDG_CONFIG_HOME"/moc}}
 
| {{ic|$ mocp -M "$XDG_CONFIG_HOME"/moc}}
 
{{ic|1=$ mocp -O MOCDir="$XDG_CONFIG_HOME"/moc}}
 
{{ic|1=$ mocp -O MOCDir="$XDG_CONFIG_HOME"/moc}}
  +
|-
  +
| [https://www.jedsoft.org/most/ most]
  +
| {{ic|~/.mostrc}}
  +
|
  +
|
  +
| {{ic|1=$ export MOST_INITFILE="$XDG_CONFIG_HOME"/mostrc}}
 
|-
 
|-
 
| [[MPlayer]]
 
| [[MPlayer]]
687行目: 917行目:
 
| {{ic|1=$ export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer}}
 
| {{ic|1=$ export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer}}
 
|-
 
|-
| [[mutt]]
+
| [[msmtp]]
| {{ic|~/.mutt}}
+
| {{ic|~/.msmtprc}}
 
|
 
|
  +
|
| [http://dev.mutt.org/trac/ticket/3207]
 
| {{ic|$ mutt -F "$XDG_CONFIG_HOME"/mutt/muttrc}}
+
| {{ic|1=$ msmtp -C "$XDG_CONFIG_HOME"/msmtp/msmtprc}}
{{hc|muttrc|
 
set header_cache &#61; $XDG_CACHE_HOME/mutt/headers
 
set message_cachedir &#61; $XDG_DATA_HOME/mutt/messages
 
set mailcap_path &#61; $XDG_CONFIG_HOME/mutt/mailcap
 
set record &#61; $XDG_DATA_HOME/mutt/record/sent
 
}}
 
 
|-
 
|-
| [[notmuch]]
+
| [[MySQL]]
| {{ic|~/.notmuch-config}}
+
| {{ic|~/.mysql_history}}
 
|
 
|
  +
|
| [http://notmuchmail.org/pipermail/notmuch/2011/007007.html]
 
| {{ic|1=$ export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc}}
+
| {{ic|1=$ export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history}}
{{ic|1=$ export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug}}
 
 
|-
 
|-
 
| {{pkg|ncurses}}
 
| {{pkg|ncurses}}
712行目: 935行目:
 
| {{ic|1=$ export TERMINFO="$XDG_DATA_HOME"/terminfo # Precludes system path searching.}}
 
| {{ic|1=$ export TERMINFO="$XDG_DATA_HOME"/terminfo # Precludes system path searching.}}
 
{{ic|1=$ export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo}}
 
{{ic|1=$ export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo}}
  +
|-
  +
| [http://www.musicpd.org/clients/ncmpc/ ncmpc]
  +
| {{ic|~/.ncmpc}}
  +
|
  +
|
  +
| {{ic|ncmpc -f "$XDG_CONFIG_HOME"/ncmpc/config}}
  +
|-
  +
| [[Netbeans]]
  +
| {{ic|~/.netbeans}}
  +
|
  +
| [https://netbeans.org/bugzilla/show_bug.cgi?id=215961]
  +
| {{ic|1=$ netbeans --userdir "${XDG_CONFIG_HOME}"/netbeans}}
  +
|-
  +
| [[Node.js]]
  +
| {{ic|~/.node_repl_history}}
  +
|
  +
|
  +
| {{ic|1=$ export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history}} [https://nodejs.org/api/repl.html#repl_environment_variable_options]
  +
|-
  +
| [[notmuch]]
  +
| {{ic|~/.notmuch-config}}
  +
|
  +
| [http://notmuchmail.org/pipermail/notmuch/2011/007007.html]
  +
| {{ic|1=$ export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc}}
  +
{{ic|1=$ export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug}}
 
|-
 
|-
 
| [[Node.js#Node_Packaged_Module|npm]]
 
| [[Node.js#Node_Packaged_Module|npm]]
718行目: 966行目:
 
| [https://github.com/npm/npm/issues/6675]
 
| [https://github.com/npm/npm/issues/6675]
 
| {{ic|1=$ export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc}}
 
| {{ic|1=$ export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc}}
{{hc|npmrc|<nowiki>cache=$XDG_CACHE_HOME/npm
+
{{hc|npmrc|<nowiki>
prefix=$XDG_DATA_HOME/npm</nowiki>}}
+
prefix=${XDG_DATA_HOME}/npm
  +
cache=${XDG_CACHE_HOME}/npm
  +
tmp=${XDG_RUNTIME_DIR}/npm
  +
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
  +
</nowiki>}}
  +
Node.js を {{AUR|nvm}} でインストールした場合 {{ic|prefix}} は必要ありません (サポートされません)。
 
|-
 
|-
  +
| [https://github.com/NVIDIA/nvidia-settings nvidia-settings]
| [[NVIDIA]], [[CUDA]]
 
| {{ic|~/.nv}}
+
| {{ic|~/.nvidia-settings-rc}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
+
| {{ic|1=$ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings}}
  +
|-
{{ic|1=$ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
 
  +
| {{AUR|nvm}}
  +
| {{ic|~/.nvm}}
  +
|
  +
|
  +
| {{ic|1=$ export NVM_DIR="$XDG_DATA_HOME"/nvm}}
  +
|-
  +
| [[Octave]]
  +
| {{ic|~/octave}}
  +
  +
{{ic|~/.octave_packages}}
  +
  +
{{ic|~/.octave_hist}}
  +
|
  +
|
  +
| {{ic|1=$ export OCTAVE_HISTFILE="$XDG_CACHE_HOME/octave-hsts"}}
  +
  +
{{ic|1=$ export OCTAVE_SITE_INITFILE="$XDG_CONFIG_HOME/octave/octaverc"}}
  +
  +
{{hc|$XDG_CONFIG_HOME/octave/octaverc|<nowiki>
  +
source /usr/share/octave/site/m/startup/octaverc;
  +
pkg prefix ~/.local/share/octave/packages ~/.local/share/octave/packages;
  +
pkg local_list /home/<your username>/.local/share/octave/octave_packages;
  +
</nowiki>}}
  +
{{ic|local_list}} オプションは絶対パスで指定する必要があります。
 
|-
 
|-
 
| [http://www.openscad.org/ openscad]
 
| [http://www.openscad.org/ openscad]
735行目: 1,012行目:
   
 
現在 {{ic|~/.local/share}} が [https://github.com/openscad/openscad/blob/master/src/PlatformUtils-posix.cc#L20 ハードコード] されています。
 
現在 {{ic|~/.local/share}} が [https://github.com/openscad/openscad/blob/master/src/PlatformUtils-posix.cc#L20 ハードコード] されています。
  +
|-
  +
| [[OpenSSL]]
  +
| {{ic|~/.rnd}}
  +
|
  +
|
  +
| .rnd ファイルの場所は RANDFILE 環境変数で設定できます。[https://www.openssl.org/docs/faq.html FAQ] を参照。
  +
|-
  +
| [[pass]]
  +
| {{ic|~/.password-store}}
  +
|
  +
|
  +
| {{ic|1=$ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass}}
  +
|-
  +
| [[pidgin]]
  +
| {{ic|~/.purple}}
  +
|
  +
| [https://developer.pidgin.im/ticket/4911]
  +
| {{ic|1=$ pidgin --config="$XDG_DATA_HOME"/purple}}
  +
|-
  +
| [[PostgreSQL|postgresql]]
  +
| {{ic|~/.psqlrc}}
  +
{{ic|~/.psql_history}}
  +
  +
{{ic|~/.pgpass}}
  +
  +
{{ic|~/.pg_service.conf}}
  +
| 9.2
  +
| [https://www.postgresql.org/docs/current/static/app-psql.html]
  +
  +
[https://www.postgresql.org/docs/current/static/libpq-envars.html]
  +
| {{ic|1=$ export PSQLRC="$XDG_CONFIG_HOME/pg/psqlrc"}}
  +
{{ic|1=$ export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"}}
  +
  +
{{ic|1=$ export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"}}
  +
  +
{{ic|1=$ export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"}}
  +
  +
ディレクトリを作成する必要があります: {{ic|1=$ mkdir "$XDG_CONFIG_HOME/pg" && mkdir "$XDG_CACHE_HOME/pg"}}。
  +
|-
  +
| [[PulseAudio]]
  +
| {{ic|~/.esd_auth}}
  +
|
  +
|
  +
| {{ic|module-esound-protocol-unix.so}} モジュールによって生成されます。別の場所を使用するように設定することもできますが {{ic|/etc/pulse/default.pa}} や {{ic|"$XDG_CONFIG_HOME"/pulse/default.pa}} でモジュールをコメントアウトしてしまう方が簡単です。
  +
|-
  +
| [https://www.pylint.org/ pylint]
  +
| {{ic|~/.pylint.d}}
  +
|
  +
| [https://github.com/PyCQA/pylint/issues/1364]
  +
| {{ic|1=$ export PYLINTHOME="$XDG_CACHE_HOME"/pylint}}
 
|-
 
|-
 
| [https://pypi.python.org/pypi/setuptools python-setuptools]
 
| [https://pypi.python.org/pypi/setuptools python-setuptools]
753行目: 1,080行目:
 
| [https://github.com/hanslub42/rlwrap/issues/25]
 
| [https://github.com/hanslub42/rlwrap/issues/25]
 
| {{ic|1=$ export RLWRAP_HOME="$XDG_DATA_HOME"/rlwrap}}
 
| {{ic|1=$ export RLWRAP_HOME="$XDG_DATA_HOME"/rlwrap}}
  +
|-
  +
| [[Ruby#RubyGems|RubyGems]]
  +
| {{ic|~/.gem}}
  +
|
  +
|
  +
| {{ic|1=$ export GEM_HOME="$XDG_DATA_HOME"/gem}}
  +
{{ic|1=$ export GEM_SPEC_CACHE="$XDG_CACHE_HOME"/gem}}
  +
|-
  +
| [[Rust|rustup]]
  +
| {{ic|~/.rustup}}
  +
|
  +
| [https://github.com/rust-lang-nursery/rustup.rs/issues/247]
  +
| {{ic|1=$ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup}}
  +
|-
  +
| [http://www.scala-sbt.org/ sbt]
  +
| {{ic|~/.sbt}}
  +
{{ic|~/.ivy2}}
  +
|
  +
| [https://github.com/sbt/sbt/issues/3681]
  +
| {{ic|1=$ sbt -ivy "$XDG_DATA_HOME"/ivy2 -sbt-dir "$XDG_DATA_HOME"/sbt}} ([https://github.com/sbt/sbt/issues/3598])
 
|-
 
|-
 
| [[screen]]
 
| [[screen]]
760行目: 1,107行目:
 
| {{ic|1=$ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc}}
 
| {{ic|1=$ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc}}
 
|-
 
|-
| [https://www.stackage.org/ stack]
+
| [[stack]]
 
| {{ic|~/.stack}}
 
| {{ic|~/.stack}}
 
|
 
|
769行目: 1,116行目:
 
| {{ic|~/.subversion}}
 
| {{ic|~/.subversion}}
 
|
 
|
| [https://mail-archives.apache.org/mod_mbox/subversion-users/201204.mbox/%3c4F8FBCC6.4080205@ritsuka.org%3e][http://mail-archives.apache.org/mod_mbox/subversion-dev/201509.mbox/%3c20150917222954.GA20331@teapot%3e]
+
| [https://issues.apache.org/jira/browse/SVN-4599][https://mail-archives.apache.org/mod_mbox/subversion-users/201204.mbox/%3c4F8FBCC6.4080205@ritsuka.org%3e][http://mail-archives.apache.org/mod_mbox/subversion-dev/201509.mbox/%3c20150917222954.GA20331@teapot%3e]
 
| {{ic|$ svn --config-dir "$XDG_CONFIG_HOME"/subversion}}
 
| {{ic|$ svn --config-dir "$XDG_CONFIG_HOME"/subversion}}
  +
|-
  +
| {{pkg|task}}
  +
| {{ic|~/.task}} {{ic|~/.taskrc}}
  +
|
  +
|
  +
| {{ic|1=$ export TASKDATA="$XDG_DATA_HOME"/task}} {{ic|1=$ export TASKRC="$XDG_CONFIG_HOME"/task/taskrc}}
  +
|-
  +
| [[TeX Live]]
  +
| {{ic|~/.texliveYYYY}} (YYYY は年度)
  +
|
  +
|
  +
| {{ic|$ export TEXMFCNF&#61;"${XDG_CONFIG_HOME}/texmf/web2c:$(kpsewhich --var-value&#61;'TEXMFCNF')"}}
  +
{{hc|$XDG_CONFIG_HOME/texmf/web2c/texmf.cnf|
  +
TEXMFHOME&#61;$XDG_DATA_HOME/texmf
  +
TEXMFCONFIG&#61;$XDG_CONFIG_HOME/texmf
  +
TEXMFVAR&#61;$XDG_CACHE_HOME/texmf}}
 
|-
 
|-
 
| [http://jonas.nitro.dk/tig/ tig]
 
| [http://jonas.nitro.dk/tig/ tig]
777行目: 1,140行目:
 
|
 
|
 
| {{ic|1=$ export TIGRC_USER="$XDG_CONFIG_HOME"/tig/tigrc}}
 
| {{ic|1=$ export TIGRC_USER="$XDG_CONFIG_HOME"/tig/tigrc}}
  +
|-
  +
| [http://tiptop.gforge.inria.fr/ tiptop]
  +
| {{ic|~/.tiptoprc}}
  +
|
  +
|
  +
| {{ic|.tiptoprc}} ファイルを必要とします: {{ic|$ tiptop -W "$XDG_CONFIG_HOME"/tiptop}}。
 
|-
 
|-
 
| [[tmux]]
 
| [[tmux]]
 
| {{ic|~/.tmux.conf}}
 
| {{ic|~/.tmux.conf}}
 
|
 
|
| [http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/6013] [http://sourceforge.net/p/tmux/mailman/message/30619546/]
+
| [http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/6013] [https://sourceforge.net/p/tmux/mailman/message/30619546/]
 
| {{ic|$ tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf}}
 
| {{ic|$ tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf}}
{{ic|1= $ export TMUX_TMPDIR="$XDG_RUNTIME_DIR"/tmux}}
+
{{ic|1=$ export TMUX_TMPDIR="$XDG_RUNTIME_DIR"}}
  +
|-
  +
| [https://github.com/bengardner/uncrustify uncrustify]
  +
| {{ic|~/.uncrustify.cfg}}
  +
|
  +
|
  +
| {{ic|1=$ export UNCRUSTIFY_CONFIG="$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg}}
  +
|-
  +
| [[Unison]]
  +
| {{ic|~/.unison}}
  +
|
  +
|
  +
| {{ic|1=$ export UNISON="$XDG_DATA_HOME"/unison}}
 
|-
 
|-
| [[Rxvt-unicode/Tips_and_tricks#デーモンクライアント|urxvtd]]
+
| [[Rxvt-unicode/ヒントとテクニック‎#デーモンクライアント|urxvtd]]
 
| {{ic|~/.urxvt/urxvtd-hostname}}
 
| {{ic|~/.urxvt/urxvtd-hostname}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export RXVT_SOCKET="$XDG_RUNTIME_DIR"/urxvt/urxvt-"$(hostname)"}}
+
| {{ic|1=$ export RXVT_SOCKET="$XDG_RUNTIME_DIR"/urxvtd}}
 
|-
 
|-
 
| [[WeeChat]]
 
| [[WeeChat]]
 
| {{ic|~/.weechat}}
 
| {{ic|~/.weechat}}
 
|
 
|
| [http://savannah.nongnu.org/task/?10934]
+
| [https://savannah.nongnu.org/task/?10934]
 
| {{ic|1=$ export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat}}
 
| {{ic|1=$ export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat}}
 
{{ic|$ weechat -d "$XDG_CONFIG_HOME"/weechat}}
 
{{ic|$ weechat -d "$XDG_CONFIG_HOME"/weechat}}
  +
|-
  +
| [[wget]]
  +
| {{ic|~/.wgetrc}} {{ic|~/.wget-hsts}}
  +
|
  +
|
  +
| {{ic|1=$ export WGETRC="$XDG_CONFIG_HOME/wgetrc"}}
  +
{{ic|1=$ wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"}}
 
|-
 
|-
 
| [[wine]]
 
| [[wine]]
802行目: 1,190行目:
 
|
 
|
 
| [https://bugs.winehq.org/show_bug.cgi?id=20888]
 
| [https://bugs.winehq.org/show_bug.cgi?id=20888]
  +
| [[Wine#Winetricks|Winetricks]] は [[Wine#WINEPREFIX|WINEPREFIX]] の管理に XDG のような場所を使用します:
| {{ic|1=$ export WINEPREFIX="$XDG_DATA_HOME"/wine}}
 
  +
{{ic|1=$ mkdir -p "$XDG_DATA_HOME"/wineprefixes}}
  +
  +
{{ic|1=$ export WINEPREFIX="$XDG_DATA_HOME"/wineprefixes/default}}
 
|-
 
|-
 
| {{pkg|xorg-xauth}}
 
| {{pkg|xorg-xauth}}
808行目: 1,199行目:
 
|
 
|
 
|
 
|
| {{ic|1=$ export XAUTHORITY="$XDG_RUNTIME_DIR"/X11/xauthority}}
+
| {{ic|1=$ export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority}}
 
|-
 
|-
  +
| [[xinit]]
| [http://www.x.org/wiki/ libx11]
 
| {{ic|~/.XCompose}}
+
| {{ic|~/.xinitrc}} {{ic|~/.xserverrc}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose}}
+
| {{ic|1=$ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc}} {{ic|1=$ export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc}}
  +
  +
上記の変数は ''xinit'' には反映されますが、''startx'' には反映されません。starx では引数としてファイル名を指定してください:
  +
  +
{{ic|1=$ startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1}}
 
|-
 
|-
| {{pkg|xorg-xinit}}
+
| {{pkg|xorg-xrdb}}
| {{ic|~/.xinitrc}}
+
| {{ic|~/.Xresources}} {{ic|~/.Xdefaults}}
 
|
 
|
 
|
 
|
  +
| {{ic|xrdb -load ~/.config/X11/xresources}} のようにパスを指定して {{ic|xrdb}} でリソースがロードされるように {{ic|Xresources}} を [https://superuser.com/questions/243914/xresources-or-xdefaults 使用] することができます。
| {{ic|1=$ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc}}
 
  +
|}
  +
  +
==ハードコードされているソフトウェア==
  +
  +
{| class="wikitable sortable" style="width: 100%"
  +
! アプリケーション
  +
! 旧パス
  +
! 議論
  +
! ノート
 
|-
 
|-
  +
| [[ADB|adb]]
| {{pkg|xorg-xrdb}}
 
| {{ic|~/.Xresources}} {{ic|~/.Xdefaults}}
+
| {{ic|~/.android}}
  +
| [https://developer.android.com/studio/command-line/variables.html#android_sdk_root]
  +
| {{ic|1=$ export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android}}
  +
|-
  +
| [[AMule]]
  +
| {{ic|~/.aMule}}
 
|
 
|
 
|
 
|
| {{ic|xrdb -load ~/.config/X11/xresources}} のようにパスを指定して {{ic|xrdb}} でリソースがロードされるように {{ic|Xresources}} を [http://superuser.com/questions/243914/xresources-or-xdefaults 使用] することができます。
 
 
|-
 
|-
  +
| [[Android#Android Studio|Android Studio]]
| [https://github.com/bengardner/uncrustify uncrustify]
 
| {{ic|~/.uncrustify.cfg}}
+
| {{ic|~/.AndroidStudio2.3}}
  +
  +
{{ic|~/.android}}
  +
  +
{{ic|~/.java}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export UNCRUSTIFY_CONFIG="$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg}}
 
 
|-
 
|-
| [http://www.vergenet.net/~conrad/software/xsel/ xsel]
+
| [https://osdn.net/projects/anthy/ anthy]
| {{ic|~/.xsel.log}}
+
| {{ic|~/.anthy}}
  +
| [https://osdn.net/ticket/browse.php?group_id=14&tid=28397]
 
|
 
|
| [https://github.com/kfish/xsel/issues/10]
 
| {{ic|1=$ xsel --logfile "$XDG_CACHE_HOME"/xsel/xsel.log}}
 
 
|-
 
|-
| [https://github.com/cisco/ChezScheme ChezScheme]
+
| [https://directory.apache.org/studio/ Apache Directory Studio]
| {{ic|~/.chezscheme_history}}
+
| {{ic|~/.ApacheDirectoryStudio}}
 
|
 
|
 
|
 
|
| {{ic|1=$ petite --eehistory "$XDG_DATA_HOME"/chezscheme/history}}
 
 
|-
 
|-
  +
| [[Arduino]]
| [https://github.com/NVIDIA/nvidia-settings nvidia-settings]
 
| {{ic|~/.nvidia-settings-rc}}
+
| {{ic|~/.arduino15}}
  +
{{ic|~/.jssc}}
  +
| [https://github.com/arduino/Arduino/issues/3915]
 
|
 
|
|
 
| {{ic|1=$ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings}}
 
 
|-
 
|-
  +
| {{pkg|arandr}}
| [https://github.com/get-iplayer/get_iplayer get_iplayer]
 
| {{ic|~/.get_iplayer}}
+
| {{ic|~/.screenlayout}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export GETIPLAYERUSERPREFS="$XDG_DATA_HOME"/get_iplayer}}
 
|}
 
 
==ハードコードされているソフトウェア==
 
 
{| class="wikitable sortable" style="width: 100%"
 
! アプリケーション
 
! 旧パス
 
! 対応開始
 
! 議論
 
! ノート
 
 
|-
 
|-
| [https://directory.apache.org/studio/ Apache Directory Studio]
+
| [https://www.audacityteam.org/ Audacity]
| {{ic|~/.ApacheDirectoryStudio}}
+
| {{ic|~/.audacity-data}}
|
 
 
|
 
|
 
|
 
|
 
|-
 
|-
  +
| [http://fixounet.free.fr/avidemux/ Avidemux]
| [[AMule]]
 
| {{ic|~/.aMule}}
+
| {{ic|~/.avidemux6}}
|
 
 
|
 
|
 
|
 
|
882行目: 1,278行目:
 
| [[bash]]
 
| [[bash]]
 
| {{ic|~/.bashrc}} {{ic|~/.bash_history}} {{ic|~/.bash_profile}} {{ic|~/.bash_login}} {{ic|~/.bash_logout}}
 
| {{ic|~/.bashrc}} {{ic|~/.bash_history}} {{ic|~/.bash_profile}} {{ic|~/.bash_login}} {{ic|~/.bash_logout}}
|
 
 
| [http://savannah.gnu.org/support/?108134]
 
| [http://savannah.gnu.org/support/?108134]
 
|
 
|
 
* 指定された {{ic|bashrc}} は {{ic|/etc/bashrc}} から読み込まれます。
 
* 指定された {{ic|bashrc}} は {{ic|/etc/bashrc}} から読み込まれます。
 
* {{ic|1=export HISTFILE="$XDG_DATA_HOME"/bash/history}}
 
* {{ic|1=export HISTFILE="$XDG_DATA_HOME"/bash/history}}
  +
* インタラクティブシェルでは {{ic|~/.bashrc}} の代わりに {{ic|--init-file <file>}} で指定。
 
|-
 
|-
| [https://www.haskell.org/cabal/ cabal]
+
| [[Haskell|cabal]]
 
| {{ic|~/.cabal}}
 
| {{ic|~/.cabal}}
|
 
 
| [https://github.com/haskell/cabal/issues/680]
 
| [https://github.com/haskell/cabal/issues/680]
 
| 対処方法は議論を見てください。簡単な方法ではありませんが Base Directory 準拠をエミュレートできます。
 
| 対処方法は議論を見てください。簡単な方法ではありませんが Base Directory 準拠をエミュレートできます。
  +
|-
  +
| [https://calibre-ebook.com/ calibre]
  +
| {{ic|~/Calibre Library}}
  +
|
  +
|
 
|-
 
|-
 
| [[CUPS]]
 
| [[CUPS]]
 
| {{ic|~/.cups}}
 
| {{ic|~/.cups}}
|
 
 
| [http://www.cups.org/str.php?L4243]
 
| [http://www.cups.org/str.php?L4243]
  +
|
  +
|-
  +
| [[darcs]]
  +
| {{ic|~/.darcs}}
  +
| [http://bugs.darcs.net/issue2453]
 
|
 
|
 
|-
 
|-
 
| [[D-Bus|dbus]]
 
| [[D-Bus|dbus]]
 
| {{ic|~/.dbus}}
 
| {{ic|~/.dbus}}
|
 
 
| [https://bugs.freedesktop.org/show_bug.cgi?id=35887]
 
| [https://bugs.freedesktop.org/show_bug.cgi?id=35887]
 
| [[kdbus]] を使うことで回避できます。
 
| [[kdbus]] を使うことで回避できます。
  +
|-
  +
| [https://wiki.gnome.org/Apps/Dia Dia]
  +
| {{ic|~/.dia}}
  +
|
  +
|-
  +
| [[docker]]
  +
| {{ic|~/.docker}}
  +
| [https://github.com/docker/machine/issues/3116] [https://github.com/moby/moby/issues/20693]
  +
|
 
|-
 
|-
 
| [[eclipse]]
 
| [[eclipse]]
 
| {{ic|~/.eclipse}}
 
| {{ic|~/.eclipse}}
|
 
 
| [https://bugs.eclipse.org/bugs/show_bug.cgi?id=200809]
 
| [https://bugs.eclipse.org/bugs/show_bug.cgi?id=200809]
 
| {{ic|1=-Dosgi.configuration.area=@user.home/.config/..}} オプションで上書きできますがコマンドラインで指定するのではなく {{ic|"$ECLIPSE_HOME"/eclipse.ini"}} に追加する必要があり {{ic|$ECLIPSE_HOME}} の書き込み権限が要ります (Arch Linux では {{ic|$ECLIPSE_HOME}} が {{ic|/usr/bin/eclipse}} に決め打ちされています)。
 
| {{ic|1=-Dosgi.configuration.area=@user.home/.config/..}} オプションで上書きできますがコマンドラインで指定するのではなく {{ic|"$ECLIPSE_HOME"/eclipse.ini"}} に追加する必要があり {{ic|$ECLIPSE_HOME}} の書き込み権限が要ります (Arch Linux では {{ic|$ECLIPSE_HOME}} が {{ic|/usr/bin/eclipse}} に決め打ちされています)。
914行目: 1,325行目:
 
| [[emacs]]
 
| [[emacs]]
 
| {{ic|~/.emacs}} {{ic|~/.emacs.d}}
 
| {{ic|~/.emacs}} {{ic|~/.emacs.d}}
|
 
 
| [http://debbugs.gnu.org/cgi/bugreport.cgi?bug=583]
 
| [http://debbugs.gnu.org/cgi/bugreport.cgi?bug=583]
 
| {{ic|HOME}} を設定することができますが、予期せぬ副作用を生みます。他の Emacs 環境変数を修正してロードパスを変更して手動で init ファイルをロードする site ファイルを作成するのが確実ですが、ロードプロセスが大幅に変わってしまいます。
 
| {{ic|HOME}} を設定することができますが、予期せぬ副作用を生みます。他の Emacs 環境変数を修正してロードパスを変更して手動で init ファイルをロードする site ファイルを作成するのが確実ですが、ロードプロセスが大幅に変わってしまいます。
  +
|-
  +
| [http://www.fetchmail.info/ Fetchmail]
  +
| {{ic|~/.fetchmailrc}}
  +
|
  +
|
 
|-
 
|-
 
| [[firefox]]
 
| [[firefox]]
 
| {{ic|~/.mozilla}}
 
| {{ic|~/.mozilla}}
|
 
 
| [https://bugzil.la/259356]
 
| [https://bugzil.la/259356]
 
|
 
|
 
|-
 
|-
  +
| [[Flatpak]]
| [http://www.gnu.org/software/parallel/ GNU parallel]
 
  +
| {{ic|~/.var/}}
  +
| [https://github.com/flatpak/flatpak/issues/46] [https://github.com/flatpak/flatpak.github.io/issues/191]
  +
|
  +
|-
  +
| [[GHC]]
  +
| {{ic|~/.ghc}}
  +
| [https://ghc.haskell.org/trac/ghc/ticket/6077]
  +
|
  +
|-
  +
| [https://www.gnu.org/software/parallel/ GNU parallel]
 
| {{ic|~/.parallel}}
 
| {{ic|~/.parallel}}
|
 
 
|
 
|
 
|
 
|
 
|-
 
|-
  +
| [[RecordMyDesktop|gtk-recordMyDesktop]]
| [[GStreamer|gstreamer-0.10]]
 
| {{ic|~/.gstreamer-0.10}}
+
| {{ic|~/.gtk-recordmydesktop}}
|
+
|
|
+
|
| [http://gstreamer.freedesktop.org/ gstreamer-1.0] を使ってください。
 
 
|-
 
|-
 
| [http://www.idris-lang.org/ idris]
 
| [http://www.idris-lang.org/ idris]
 
| {{ic|~/.idris}}
 
| {{ic|~/.idris}}
  +
| [https://github.com/idris-lang/Idris-dev/pull/3456]
 
|
 
|
|
+
|-
  +
| [[Java]] (OpenJDK)
  +
| {{ic|~/.java/fonts}} {{ic|~/.java/webview}} (JavaFX)
  +
| [https://bugzilla.redhat.com/show_bug.cgi?id=1154277] (RedHat)
 
|
 
|
 
|-
 
|-
| [http://julialang.org/ julia]
+
| [[julia]]
 
| {{ic|~/.juliarc.jl}} {{ic|~/.julia_history}}
 
| {{ic|~/.juliarc.jl}} {{ic|~/.julia_history}}
|
 
 
| [https://github.com/JuliaLang/julia/issues/4630] [https://github.com/JuliaLang/julia/issues/10016]
 
| [https://github.com/JuliaLang/julia/issues/4630] [https://github.com/JuliaLang/julia/issues/10016]
 
|
 
|
  +
|-
  +
| [[PAM|Linux PAM]]
  +
| {{ic|~/.pam_environment}}
  +
| [https://github.com/linux-pam/linux-pam/issues/7]
  +
| ハードコード: [https://github.com/linux-pam/linux-pam/blob/master/modules/pam_env/pam_env.c modules/pam_env/pam_env.c]。
 
|-
 
|-
 
| [http://lldb.llvm.org/ lldb]
 
| [http://lldb.llvm.org/ lldb]
 
| {{ic|~/.lldb}} {{ic|~/.lldbinit}}
 
| {{ic|~/.lldb}} {{ic|~/.lldbinit}}
|
 
 
|
 
|
 
|
 
|
956行目: 1,385行目:
 
| [http://www.mathomatic.org/ mathomatic]
 
| [http://www.mathomatic.org/ mathomatic]
 
| {{ic|~/.mathomaticrc}} {{ic|~/.matho_history}}
 
| {{ic|~/.mathomaticrc}} {{ic|~/.matho_history}}
|
 
 
|
 
|
 
| {{ic|rlwrap mathomatic -r}} を使って {{ic|RLWRAP_HOME}} 変数を適切に設定することで履歴を移動できます。
 
| {{ic|rlwrap mathomatic -r}} を使って {{ic|RLWRAP_HOME}} 変数を適切に設定することで履歴を移動できます。
 
|-
 
|-
  +
| [[Minecraft]]
| [http://www.milkytracker.org/ milkytracker]
 
| {{ic|~/.milkytracker_config}}
+
| {{ic|~/.minecraft}}
  +
| [https://bugs.mojang.com/browse/MCL-2563]
|
 
| [https://github.com/Deltafire/MilkyTracker/issues/12]
 
 
|
 
|
 
|-
 
|-
 
| [[MongoDB|mongodb]]
 
| [[MongoDB|mongodb]]
 
| {{ic|~/.mongorc.js}} {{ic|~/.dbshell}}
 
| {{ic|~/.mongorc.js}} {{ic|~/.dbshell}}
|
 
 
| [https://jira.mongodb.org/browse/DOCS-5652?jql=text%20~%20%22.mongorc.js%22]
 
| [https://jira.mongodb.org/browse/DOCS-5652?jql=text%20~%20%22.mongorc.js%22]
| [http://stackoverflow.com/a/22349050/4200039 Stack Overflow のスレッド] ではコマンドラインスイッチの {{ic|--norc}} を使うことを提案しています。
+
| [https://stackoverflow.com/a/22349050/4200039 Stack Overflow のスレッド] ではコマンドラインスイッチの {{ic|--norc}} を使うことを提案しています。
 
|-
 
|-
| [http://www.musicpd.org/clients/ncmpc/ ncmpc]
 
| {{ic|~/.ncmpc}}
 
 
|
 
|
  +
| {{ic|~/.netrc}}
 
|
 
|
  +
| {{ic|~/.ssh}} などの多数のプログラムが使っています。curl ({{ic|CURLOPT_NETRC_FILE}}), ftp ({{ic|NETRC}}), s-nail ({{ic|NETRC}}) なども使用しています。別の場所を設定できるプログラムも存在しますが w3m, wget, lftp など大抵のプログラムは設定が不可能です。
  +
|-
  +
| [https://github.com/nodejs/node-gyp node-gyp]
  +
| {{ic|~/.node-gyp}}
  +
| [https://github.com/nodejs/node-gyp/issues/175] [https://github.com/nodejs/node-gyp/issues/21] [https://github.com/nodejs/node-gyp/issues/1124]
  +
| 今後、部分的サポートが追加される予定です。
 
|
 
|
  +
|-
  +
| [[Network Security Services|NSS]]
  +
| {{ic|~/.pki}}
  +
| [https://bugzilla.mozilla.org/show_bug.cgi?id=818686]
  +
|
  +
|-
  +
| [[OpenSSH]]
  +
| {{ic|~/.ssh}}
  +
| [https://bugzilla.mindrot.org/show_bug.cgi?id=2050]
  +
| DropBear や OpenSSH など多数の ssh デーモンやクライアントが使用します。
 
|-
 
|-
 
| [https://www.palemoon.org/ palemoon]
 
| [https://www.palemoon.org/ palemoon]
 
| {{ic|~/.moonchild productions}}
 
| {{ic|~/.moonchild productions}}
|
 
 
| [https://forum.palemoon.org/viewtopic.php?f=5&t=9639]
 
| [https://forum.palemoon.org/viewtopic.php?f=5&t=9639]
 
|
 
|
987行目: 1,427行目:
 
| {{ic|~/.debug}}
 
| {{ic|~/.debug}}
 
|
 
|
  +
| [https://github.com/torvalds/linux/blob/master/tools/perf/util/config.c#L29 tools/perf/util/config.c:29] でハードコードされています。
  +
|-
  +
|
  +
| {{ic|~/.profile}}
 
|
 
|
  +
| 様々な[[シェル]]や[[ディスプレイマネージャ]]が使用しています。
| [https://github.com/torvalds/linux/blob/master/tools/perf/util/config.c#L18 tools/perf/util/config.c:18] でハードコードされています。
 
 
|-
 
|-
 
| [[python]]
 
| [[python]]
 
| {{ic|~/.python_history}}
 
| {{ic|~/.python_history}}
|
 
 
|
 
|
 
| [https://bugs.python.org/issue5845 バージョン 3.4] からインタラクティブセッションの履歴は全てデフォルトで {{ic|~/.python_history}} に保存されますが、古いバージョンと同じ方法でカスタムパスを設定できます ([https://docs.python.org/3/library/readline.html?highlight=readline#example] を参照)。
 
| [https://bugs.python.org/issue5845 バージョン 3.4] からインタラクティブセッションの履歴は全てデフォルトで {{ic|~/.python_history}} に保存されますが、古いバージョンと同じ方法でカスタムパスを設定できます ([https://docs.python.org/3/library/readline.html?highlight=readline#example] を参照)。
 
|-
 
|-
  +
| [[Qt#開発|Qt Designer]]
| {{pkg|procps-ng}}
 
| {{ic|~/.toprc}}
+
| {{ic|~/.designer}}
  +
|
  +
|
  +
|-
  +
| [https://quodlibet.readthedocs.io/en/latest/ Quod Libet]
  +
| {{ic|~/.quodlibet}}
  +
| [https://github.com/quodlibet/quodlibet/issues/138]
  +
|
  +
|-
  +
| [https://racket-lang.org/ racket]
  +
| {{ic|~/.racketrc}}
  +
|
  +
|
  +
|-
  +
| [http://rednotebook.sourceforge.net/ RedNotebook]
  +
| {{ic|~/.rednotebook}}
  +
|
  +
|
  +
|-
  +
| [https://remarkableapp.github.io/linux.html Remarkable]
  +
| {{ic|~/.remarkable}}
  +
|
  +
|
  +
|-
  +
| [https://www.renpy.org/ Ren'Py]
  +
| {{ic|~/.renpy}}
  +
| [https://github.com/renpy/renpy/issues/1377]
  +
|
  +
|-
  +
| [[SANE]]
  +
| {{ic|~/.sane/}}
  +
|
  +
| {{ic|scanimage}} によって {{ic|.cal}} ファイルが作成されます。
  +
|-
  +
| [https://www.scribus.net/ Scribus]
  +
| {{ic|~/.scribus}}
  +
|
  +
|-
  +
| [http://www.seamonkey-project.org/ SeaMonkey]
  +
| {{ic|~/.mozilla}}
  +
| [https://bugzil.la/726939]
  +
|
  +
|-
  +
| [https://www.gnu.org/software/solfege/solfege.html Solfege]
  +
| {{ic|~/.solfege}} {{ic|~/.solfegerc}} {{ic|~/lessonfiles}}
  +
| [https://savannah.gnu.org/bugs/index.php?50251]
  +
|
  +
|-
  +
| [[Postfix#SpamAssassin|SpamAssassin]]
  +
| {{ic|~/.spamassassin}}
 
|
 
|
| [https://bugzilla.redhat.com/show_bug.cgi?id=1155265]
 
 
|
 
|
 
|-
 
|-
 
| [[spectrwm]]
 
| [[spectrwm]]
 
| {{ic|~/.spectrwm}}
 
| {{ic|~/.spectrwm}}
|
 
 
|
 
|
 
|
 
|
 
|-
 
|-
 
| [[SQLite]]
 
| [[SQLite]]
| {{ic|~/.sqlite_history}}
+
| {{ic|~/.sqlite_history}} {{ic|~/.sqliterc}}
  +
| [https://unix.stackexchange.com/questions/306890/change-location-of-sqlite-history-file][http://sqlite.1065341.n5.nabble.com/Customizing-the-location-of-the-sqlite-history-td87055.html]
  +
| {{ic|$ sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc}}
  +
|-
  +
| [[Steam]]
  +
| {{ic|~/.steam}} {{ic|~/.steampath}} {{ic|~/.steampid}}
  +
| [https://github.com/ValveSoftware/steam-for-linux/issues/1890]
  +
| 大抵のゲームエンジン (Unity 3D, Unreal) は仕様に準拠していますが、一部のゲームパブリッシャはパスを [https://www.ctrl.blog/entry/flatpak-steamcloud-xdg Steam Auto-Cloud] にハードコードしているため、ゲームのセーブデータが間違ったディレクトリで同期されることがあります。
  +
|-
  +
| [[TeamSpeak]]
  +
| {{ic|~/.ts3client}}
  +
|
  +
|-
  +
| [http://www.texmacs.org/ TeXmacs]
  +
| {{ic|~/.TeXmacs}}
 
|
 
|
  +
|
| [http://unix.stackexchange.com/questions/306890/change-location-of-sqlite-history-file][http://sqlite.1065341.n5.nabble.com/Customizing-the-location-of-the-sqlite-history-td87055.html]
 
  +
|-
  +
| [[Thunderbird]]
  +
| {{ic|~/.thunderbird}}
  +
| [https://bugzil.la/735285]
  +
|
  +
|-
  +
| [https://git.archlinux.org/users/remy/texlive-localmanager.git/ tllocalmgr]
  +
| {{ic|~/.texlive}}
 
|
 
|
 
|-
 
|-
 
| [[vim]]
 
| [[vim]]
 
| {{ic|~/.vim}} {{ic|~/.vimrc}} {{ic|~/.viminfo}}
 
| {{ic|~/.vim}} {{ic|~/.vimrc}} {{ic|~/.viminfo}}
|
 
 
|
 
|
 
| [https://github.com/vim/vim/commit/6a459902592e2a4ba68 7.3.1178] から vim は {{ic|~/.vimrc}} が存在しない場合に {{ic|~/.vim/vimrc}} を検索します。
 
| [https://github.com/vim/vim/commit/6a459902592e2a4ba68 7.3.1178] から vim は {{ic|~/.vimrc}} が存在しない場合に {{ic|~/.vim/vimrc}} を検索します。
   
{{hc|~/.vim/vimrc|
+
{{hc|"$XDG_CONFIG_HOME"/vim/vimrc|
set undodir&#61;~/.cache/vim/undo " vim will not create this directory.
+
set undodir&#61;$XDG_CACHE_HOME/vim/undo
set directory&#61;~/.cache/vim/swap " vim will not create this directory.
+
set directory&#61;$XDG_CACHE_HOME/vim/swap
set backupdir&#61;~/.cache/vim/backup " vim will not create this directory.
+
set backupdir&#61;$XDG_CACHE_HOME/vim/backup
set viminfo+&#61;n~/.cache/vim/viminfo
+
set viminfo+&#61;'1000,n$XDG_CACHE_HOME/vim/viminfo
  +
set runtimepath&#61;$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
 
}}
 
}}
   
  +
{{hc|~/.profile|
* https://tlvince.com/vim-respect-xdg
 
  +
export VIMINIT&#61;":source $XDG_CONFIG_HOME"/vim/vimrc
  +
}}
  +
  +
https://tlvince.com/vim-respect-xdg も参照。
 
|-
 
|-
 
| [http://www.vimperator.org/ vimperator]
 
| [http://www.vimperator.org/ vimperator]
 
| {{ic|~/.vimperatorrc}}
 
| {{ic|~/.vimperatorrc}}
|
 
 
| [http://www.mozdev.org/pipermail/vimperator/2009-October/004848.html]
 
| [http://www.mozdev.org/pipermail/vimperator/2009-October/004848.html]
 
| {{ic|1=$ export VIMPERATOR_INIT=":source $XDG_CONFIG_HOME/vimperator/vimperatorrc"}}
 
| {{ic|1=$ export VIMPERATOR_INIT=":source $XDG_CONFIG_HOME/vimperator/vimperatorrc"}}
 
{{ic|1=$ export VIMPERATOR_RUNTIME="$XDG_CONFIG_HOME"/vimperator}}
 
{{ic|1=$ export VIMPERATOR_RUNTIME="$XDG_CONFIG_HOME"/vimperator}}
 
|-
 
|-
  +
| [[w3m]]
| [http://w1.fi/ wpa_cli]
 
  +
| {{ic|~/.w3m}}
  +
| [https://sourceforge.net/p/w3m/feature-requests/31/]
  +
|
  +
|-
  +
| [[WPA supplicant#wpa_cli で接続する|wpa_cli]]
 
| {{ic|~/.wpa_cli_history}}
 
| {{ic|~/.wpa_cli_history}}
|
 
 
|
 
|
 
|
 
|
1,044行目: 1,563行目:
 
| {{pkg|xdg-utils}}
 
| {{pkg|xdg-utils}}
 
| {{ic|~/.gnome}}
 
| {{ic|~/.gnome}}
  +
| [https://bugs.freedesktop.org/show_bug.cgi?id=90775]
|
 
|
 
 
| 何らかの理由で {{ic|xdg-desktop-menu}} スクリプトは {{ic|gnome_user_dir&#61;"$HOME/.gnome/apps"}} をハードコードしており、[[chromium]] などによって使われています。
 
| 何らかの理由で {{ic|xdg-desktop-menu}} スクリプトは {{ic|gnome_user_dir&#61;"$HOME/.gnome/apps"}} をハードコードしており、[[chromium]] などによって使われています。
|-
 
| [[xmonad]]
 
| {{ic|~/.xmonad}}
 
|
 
| [https://code.google.com/p/xmonad/issues/detail?id=484]
 
|
 
 
|-
 
|-
 
| [https://opensource.conformal.com/wiki/xombrero xombrero]
 
| [https://opensource.conformal.com/wiki/xombrero xombrero]
 
| {{ic|~/.xombrero}}
 
| {{ic|~/.xombrero}}
|
 
 
| [https://github.com/conformal/xombrero/issues/74]
 
| [https://github.com/conformal/xombrero/issues/74]
  +
|
  +
|-
  +
| {{pkg|yarn}}
  +
| {{ic|~/.yarnrc}}
  +
  +
{{ic|~/.yarn/}}
  +
  +
{{ic|~/.yarncache/}}
  +
  +
{{ic|~/.yarn-config/}}
  +
| [https://github.com/yarnpkg/yarn/issues/2334]
  +
|
  +
|-
  +
| [https://nmap.org/zenmap/ zenmap] ([[nmap]])
  +
| {{ic|~/.zenmap}}
  +
| [http://seclists.org/nmap-dev/2012/q2/163] [https://github.com/nmap/nmap/issues/590]
 
|
 
|
 
|-
 
|-
 
| [[zsh]]
 
| [[zsh]]
 
| {{ic|~/.zshrc}} {{ic|~/.zprofile}} {{ic|~/.zshenv}} {{ic|~/.zlogin}} {{ic|~/.zlogout}} {{ic|~/.histfile}}
 
| {{ic|~/.zshrc}} {{ic|~/.zprofile}} {{ic|~/.zshenv}} {{ic|~/.zlogin}} {{ic|~/.zlogout}} {{ic|~/.histfile}}
|
 
 
| [http://www.zsh.org/mla/workers/2013/msg00692.html]
 
| [http://www.zsh.org/mla/workers/2013/msg00692.html]
 
| {{ic|~/.zshenv}} で {{ic|1=ZDOTDIR=$HOME/.config/zsh}} を export してください (ブートストラップ問題のためにハードコードされています)。{{ic|/etc/zsh/zshenv}} にも追加することで {{ic|HOME}} にドットファイルが必要なくなります。ただし root 権限が必要で設定はシステム全体に適用されます。
 
| {{ic|~/.zshenv}} で {{ic|1=ZDOTDIR=$HOME/.config/zsh}} を export してください (ブートストラップ問題のためにハードコードされています)。{{ic|/etc/zsh/zshenv}} にも追加することで {{ic|HOME}} にドットファイルが必要なくなります。ただし root 権限が必要で設定はシステム全体に適用されます。
{{ic|1=export HISTFILE="$XDG_DATA_HOME"/zsh/history}}
+
{{ic|1=$ export HISTFILE="$XDG_DATA_HOME"/zsh/history}}
|-
 
| [http://racket-lang.org/ racket]
 
| {{ic|~/.racketrc}}
 
|
 
|
 
|
 
 
|}
 
|}
   
1,079行目: 1,599行目:
 
: [https://github.com/Cloudef/chck/tree/master/chck/xdg C99: Cloudef のシンプルな実装]。
 
: [https://github.com/Cloudef/chck/tree/master/chck/xdg C99: Cloudef のシンプルな実装]。
   
  +
; JVM ([[Java]], Kotlin, [[Clojure]], [[Scala]])
; Haskell
 
  +
: [https://github.com/soc/directories-jvm directories-jvm]
  +
  +
; [[Haskell]]
 
: 1.2.3.0 から [https://hackage.haskell.org/package/directory directory] で公式に対応 [https://github.com/haskell/directory/commit/ab9d0810ce ab9d0810ce]。
 
: 1.2.3.0 から [https://hackage.haskell.org/package/directory directory] で公式に対応 [https://github.com/haskell/directory/commit/ab9d0810ce ab9d0810ce]。
 
: [https://hackage.haskell.org/package/xdg-basedir xdg-basedir]
 
: [https://hackage.haskell.org/package/xdg-basedir xdg-basedir]
   
; Perl
+
; [[Perl]]
 
: [http://search.cpan.org/dist/File-BaseDir/lib/File/BaseDir.pm File-BaseDir]
 
: [http://search.cpan.org/dist/File-BaseDir/lib/File/BaseDir.pm File-BaseDir]
 
: [https://github.com/Aerdan/perl-file-xdg perl-file-xdg]
 
: [https://github.com/Aerdan/perl-file-xdg perl-file-xdg]
   
; Python
+
; [[Python]]
: [http://freedesktop.org/wiki/Software/pyxdg/ pyxdg]
+
: [https://freedesktop.org/wiki/Software/pyxdg/ pyxdg]
  +
  +
; [[Ruby]]
  +
: [https://github.com/rubyworks/xdg rubyworks/xdg]
  +
  +
; [[Rust]]
  +
: [https://github.com/soc/directories-rs directories-rs]
   
 
; Vala
 
; Vala
1,096行目: 1,625行目:
 
==参照==
 
==参照==
   
  +
* [https://wiki.gnome.org/Initiatives/GnomeGoals/XDGConfigFolders GNOME Goal: XDG Base Directory Specification Usage]
* [https://plus.google.com/+RobPikeTheHuman/posts/R58WgWwN9jp Rob Pike: "Dotfiles" being hidden is a UNIXv2 mistake].
 
  +
* [https://plus.google.com/+RobPikeTheHuman/posts/R58WgWwN9jp Rob Pike: "Dotfiles" being hidden is a UNIXv2 mistake]
* [http://www.freedesktop.org/software/systemd/man/systemd-path.html systemd-path(1)]
 
  +
* {{man|1|systemd-path}}
* [http://www.freedesktop.org/software/systemd/man/file-hierarchy.html file-hierarchy(7)]
 
  +
* {{man|7|file-hierarchy}}
* [https://github.com/grawity/dotfiles/blob/master/.dotfiles.notes Grawity's notes on dotfiles].
 
* [https://github.com/grawity/dotfiles/blob/master/.environ.notes Grawity's notes on environment variables].
+
* [https://github.com/grawity/dotfiles/blob/master/.dotfiles.notes Grawity's notes on dotfiles]
  +
* [https://github.com/grawity/dotfiles/blob/master/.environ.notes Grawity's notes on environment variables]
* [https://ploum.net/207-modify-your-application-to-use-xdg-folders/ ploum.net: Modify Your Application to use XDG Folders].
 
  +
* [https://ploum.net/207-modify-your-application-to-use-xdg-folders/ ploum.net: Modify Your Application to use XDG Folders]

2019年1月24日 (木) 20:46時点における版

関連記事

この記事では2003年に導入された XDG Base Directory Specification を使用しているソフトウェアを整理しています。ここでは一般的に使われているドットファイルと対応状態を並べて仕様がどれだけ使われているか示します。Base Directory Specification に対応していないソフトウェアについては、擬似的に対応させる方法を説明します。

ただし環境変数やコンパイルオプションに保存されているコードを実行したり、ソースにパッチを適用したりする方法は除外します。設定はあくまでシステム間で相互運用できるべきでありコンパイルオプションを使ってしまうと使用が制限されるためです。

XDG Base Directory Specification

フルスペック を読んでください。このセクションでは概要だけを抽出しています。

デフォルトでは pam_systemd によって XDG_RUNTIME_DIR だけが設定されます。既存のディレクトリの絶対パスを使って明示的に他の変数を定義するかどうかはユーザー次第です。

ユーザーディレクトリ

  • XDG_CONFIG_HOME
    • ユーザー個別の設定が書き込まれるディレクトリ (/etc と類似)。
    • デフォルトは $HOME/.config です。
  • XDG_CACHE_HOME
    • ユーザー個別の重要でない (キャッシュ) データが書き込まれるディレクトリ (/var/cache と類似)。
    • デフォルトは $HOME/.cache です。
  • XDG_DATA_HOME
    • ユーザー個別のデータファイルが書き込まれるディレクトリ (/usr/share と類似)。
    • デフォルトは $HOME/.local/share です。
  • XDG_RUNTIME_DIR
    • ソケットや名前付きパイプなどのような必須でないユーザー個別のデータファイルに使われます。
    • デフォルト値は必ずしも設定する必要はありません。設定されていない場合は警告が表示されます。
    • ディレクトリの所有者がユーザーでアクセスモードが 0700 である必要があります。
    • OS の標準機能だけで動作するファイルシステムを使用します。
    • ローカルファイルシステム上に存在する必要があります。
    • 定期的にファイルが消去される可能性があります。
    • 永続的に保持したい場合は6時間毎に変更を加えるかスティッキービットを設定します。
    • ユーザーがログインしている値だけ存在します。
    • tmpfs でマウントされることもあるので巨大なファイルは保存できません。

システムディレクトリ

  • XDG_DATA_DIRS
    • : でディレクトリを区切ります (PATH と類似)。
    • デフォルトは /usr/local/share:/usr/share です。
  • XDG_CONFIG_DIRS
    • : でディレクトリを区切ります (PATH と類似)。
    • デフォルトは /etc/xdg です。

貢献

ソフトウェアを追加するときは適切なセクションを使ってください。

コードの評価 (vimVIMINIT など)、パッチやコンパイルオプションが必要な方法、あるいはハードコードと考えられる方法は載せるべきではありません。また、Haskell の cabalEclipse など難しい方法もハードコードとして扱います。

  • 1番目のカラムはプロジェクト名です。できればコマンド名にしてください。ソフトウェアのウェブサイトか適切な wiki の記事にリンクさせます。
  • 2番目のカラムはプロジェクトが使用するレガシーなファイルやディレクトリです。もはや読み込まれない場合でも確認できるように記述してください。
  • 3番目のカラムは XDG Base Directory に切り替わったプロジェクトのコミットあるいはバージョンです。4番目のカラムにはその議論がある場合にリンクを載せてください。
  • 最後のカラムにはサポートしていないプロジェクトのための適切な対処方法を記載します。簡潔に書いてください。曖昧な部分がある場合は自由に追記してください。

サポートしているソフトウェア

アプリケーション 旧パス 対応開始 議論 ノート
aerc
antimicro ~/.antimicro edba864 [1]
aria2 ~/.aria2 8bc1d37 [2]
Asunder ~/.asunder

~/.asunder_album_artist

~/.asunder_album_genre

~/.asunder_album_title

2.9.0 [3] ~/.asunderXDG_CONFIG_HOME/asunder/asunder を、他の3つのファイルは XDG_CACHE_HOME/asunder/asunder_album_... を使います。移行後も古いパスは削除されないため、手動で削除する必要があります。
blender ~/.blender 4293f473 [4]
burp f2388e9
chromium ~/.chromium 23057 [5] [6]
citra ~/.citra-emu f7c3193fec [7]
composer ~/.composer 1.0.0-beta1 [8]
cower 8b70805
d-feet ~/.d-feet 7f6104b
dconf
dolphin-emu ~/.dolphin-emu a498c68 [9]
dr14-meter 7e777ca64 [10] ハードコード: $HOME/.config/dr14meter
dunst 78b6e2b1 [11]
dwb
fish
fontconfig ~/.fontconfig ~/.fonts 8c255fb1 フォントの保存には "$XDG_DATA_HOME"/fonts を使ってください。
fontforge ~/.FontForge ~/.PfaEdit e4c2cc7432 [12] [13]
freerdp ~/.freerdp edf6e7258d
Gajim ~/.gajim 3e777ea [14]
gconf ~/.gconf fc28caa7 [15]
GIMP ~/.gimp-x.y

~/.thumbnails

60e0cfe 483505f [16] [17]
git ~/.gitconfig 0d94427e
gstreamer ~/.gstreamer-0.10 4e36f93924cf [18]
gtk3
htop ~/.htoprc 93233a67
i3 ~/.i3 7c130fb54
i3status ~/.i3status.conf c3f7fc4994
imagemagick
inkscape ~/.inkscape 0.47 [19]
latexmk ~/.latexmkrc
lftp ~/.lftp 21dc400 [20]
lgogdownloader ~/.gogdownloader d430af63d000 [21]
LibreOffice a6f56f70 25bd2eec [22]
livestreamer ~/.livestreamerrc ea805917 [23]
llpp 3ab86f0cb 現在 llpp はディレクトリを作成せず XDG_CONFIG_HOME の直下に設定を保存します。
mc ~/.mc 1b9957058 0b7115647 ce401d797 [24]
Mercurial ~/.hgrc 354020079723 4.2 XDG_CONFIG_HOME/hg/hgrc
mesa 87ab26b2ab XDG_CACHE_HOME/mesa
milkytracker ~/.milkytracker_config eb487c55 [25]
mintty ~/.minttyrc cff1bd8f v2.3.7 [26]
mpd ~/.mpdconf 87b73284
mpv ~/.mpv cb250d490 [27]
mutt ~/.mutt 42fee7585f [28]
mypaint ~/.mypaint cf723b74cd
nano ~/.nano/ ~/.nanorc 036fc403 [29]
ncmpcpp ~/.ncmpcpp 38d9f811 27cd86e0 [30] [31] ncmpcpp_directory を設定しないと error.log ファイルが ~/.ncmpcpp に保存されます。
neovim ~/.nvim ~/.nvimlog ~/.nviminfo 1ca5646bb [32] [33]
newsbeuter ~/.newsbeuter 3c57824c5 [34] "$XDG_DATA_HOME"/newsbeuter"$XDG_CONFIG_HOME"/newsbeuter を作成する必要があります [35]
NVIDIA ~/.nv
OfflineIMAP ~/.offlineimaprc 5150de5 [36]
opentyrian ~/.opentyrian 8d45ff2 [37]
pcsx2 ~/.pcsx2 87f1e8f77 a9020c606 3b22f0fb0 0a012aec2 [38] [39]
pip ~/.pip 6.0 [40]
ppsspp ~/.ppsspp 132fe47c7d [41]
procps-ng ~/.toprc af53e170b9 [42] [43]
orbment
pacman ~/.makepkg.conf 80eca94c8 [44]
Panda3D ~/.panda3d 2b537d2
PulseAudio ~/.pulse ~/.pulse-cookie 59a8618dcd9 87ae8307057 9ab510a6921 4c195bcc9d5 [45]
pyroom
qutebrowser
qtile fd8686e 66d704b 51cff01 [46] 仕様と異なるファイルやディレクトリを作成するバーウィジェットも存在しますが、大抵の場合は設定で変更できます。
rclone ~/.rclone.conf 9d362589 [47]
retroarch
rr ~/.rr 02e7d41e [48]
rTorrent ~/.rtorrent.rc 6a8d332b
Skype ~/.Skype 8.0
Snes9x ~/.snes9x 19864677 [49] デフォルトの設定は空です。ROM を起動する前にユーザーが GUI や手動で設定するようになっています。
sublime-text-devAUR キャッシュは $XDG_CACHE_HOME/sublime-text-3 ではなく $XDG_CONFIG_HOME/sublime-text-3/Cache に保存されます。
surfraw ~/.surfraw.conf ~/.surfraw.bookmarks 3e4591d8 bd8c427d f57fc718
sway ~/.sway/config 614393c09 [50]
systemd
termite
tmuxinator ~/.tmuxinator 2636923 [51]
transmission ~/.transmission 5517 [52]
util-linux 570b32100
uzbl c6fd63a [53]
vimb
VirtualBox ~/.VirtualBox 4.3 [54]
vis ~/.vis [55] 68a25c75

d138908c

VLC media player ~/.vlcrc 16f32e15 [56]
warsow ~/.warsow-2.x 98ece3f [57]
wireshark ~/.wireshark b0b53fa5
xsettingsd ~/.xsettingsd 4ecd7be
xmonad ~/.xmonad 40fc10b6 [58] [59] XMONAD_CONFIG_HOME, XMONAD_DATA_HOME, XMONAD_CACHE_HOME 環境変数が使えます。
xsel ~/.xsel.log ee7b4811 [60]

部分的にサポートしているソフトウェア

アプリケーション 旧パス 対応開始 議論 ノート
abook ~/.abook $ abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_CACHE_HOME"/abook/addressbook
Anki ~/Anki ~/Documents/Anki [61] [62] $ anki -b "$XDG_DATA_HOME"/Anki
aspell ~/.aspell.conf $ export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $XDG_CONFIG_HOME/aspell/en.pws; repl $XDG_CONFIG_HOME/aspell/en.prepl"
Atom ~/.atom [63] $ export ATOM_HOME="$XDG_DATA_HOME"/atom
aws-cli ~/.aws 1.7.45 [64] $ export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials

$ export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config

bash-completion ~/.bash_completion $ export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME"/bash-completion/bash_completion
bazaar ~/.bazaar

~/.bzr.log

2.3.0 [65] 上流のバグレポートでは bazaar が ~/.config/bazaar を使うようにする議論があります。ただしログファイルは ~/.bzr.log に書き込まれます。
Bundler ~/.bundle [66] [67] $ export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
cargo ~/.cargo [68] [69] [70] [71] $ export CARGO_HOME="$XDG_DATA_HOME"/cargo
ccache ~/.ccache $ export CCACHE_DIR="$XDG_CACHE_HOME"/ccache
ChezScheme ~/.chezscheme_history $ petite --eehistory "$XDG_DATA_HOME"/chezscheme/history
conky ~/.conkyrc 00481ee [72] $ conky --config="$XDG_CONFIG_HOME"/conky/conkyrc
coreutils ~/.dircolors $ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"
crawl ~/.crawl 末尾の '/' は必須です: $ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/
CUDA ~/.nv $ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
dict ~/.dictrc $ dict -c "$XDG_CONFIG_HOME"/dict/dictrc
ELinks ~/.elinks $ export ELINKS_CONFDIR="$XDG_CONFIG_HOME"/elinks
emscripten ~/.emscripten ~/.emscripten_sanity ~/.emscripten_ports ~/.emscripten_cache__last_clear [73] $ export EM_CONFIG="$XDG_CONFIG_HOME"/emscripten/config

$ export EM_CACHE="$XDG_CACHE_HOME"/emscripten/cache $ export EM_PORTS="$XDG_DATA_HOME"/emscripten/cache $ emcc --em-config "$XDG_CONFIG_HOME"/emscripten/config --em-cache "$XDG_CACHE_HOME"/emscripten/cache

freecad ~/.FreeCAD [74] $ freecad -u "$XDG_CONFIG_HOME"/FreeCAD/user.cfg -s "$XDG_CONFIG_HOME"/FreeCAD/system.cfg
gdb ~/.gdbinit $ gdb -nh -x "$XDG_CONFIG_HOME"/gdb/init
get_iplayer ~/.get_iplayer $ export GETIPLAYERUSERPREFS="$XDG_DATA_HOME"/get_iplayer
getmail ~/.getmail/getmailrc $ getmail --rcfile="$XDG_CONFIG_HOME/getmail/getmailrc" --getmaildir="$XDG_DATA_HOME/getmail"
gliv ~/.glivrc $ gliv --glivrc="$XDG_CONFIG_HOME"/gliv/glivrc
gpg ~/.gnupg [75] [76] $ export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg

$ gpg2 --homedir "$XDG_CONFIG_HOME"/gnupg

Google Earth ~/.googleearth ~/.config/Google/GoogleEarthPlus.confKMLPathCachePath オプションで一部のパスは変更できます。
GQ LDAP クライアント ~/.gq

~/.gq-state

1.51 $ export GQRC="$XDG_CONFIG_HOME"/gqrc

$ export GQSTATE="$XDG_DATA_HOME"/gq/gq-state

$ mkdir -p "$(dirname "$GQSTATE")"

gradle ~/.gradle [77] $ export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
gtk ~/.gtkrc $ export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc
gtk2 ~/.gtkrc-2.0 $ export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
httpie ~/.httpie [78] $ export HTTPIE_CONFIG_DIR="$XDG_CONFIG_HOME"/httpie
ipython/jupyter ~/.ipython $ export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter

$ export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter

irssi ~/.irssi [79] irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi
isync ~/.mbsyncrc $ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc
Java (OpenJDK) ~/.java/.userPrefs $ export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
less ~/.lesshst $ export LESSHISTFILE="$XDG_CACHE_HOME"/less/history ("$XDG_CACHE_HOME"/less ディレクトリを手動で作成する必要があります)。

$ export LESSHISTFILE=- を使うことで機能を無効化できます。

$ export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey

libdvdcss ~/.dvdcss [80] $ export DVDCSS_CACHE="$XDG_DATA_HOME"/dvdcss
libice ~/.ICEauthority [81] $ export ICEAUTHORITY="$XDG_RUNTIME_DIR"/ICEauthority

パーミッションには注意してください。例えば gdm からユーザーの ICEauthority ファイルにアクセスする必要があります。

libx11 ~/.XCompose ~/.compose-cache $ export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose

$ export XCOMPOSECACHE="$XDG_CACHE_HOME"/X11/xcompose

ltrace ~/.ltrace.conf $ ltrace -F "$XDG_CONFIG_HOME"/ltrace/ltrace.conf
maven ~/.m2 $ mvn -gs "$XDG_CONFIG_HOME"/maven/settings.xml
settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
  ...
  <localRepository>${env.XDG_CACHE_HOME}/maven/repository</localRepository>
  ...
</settings>
Mathematica ~/.Mathematica $ export MATHEMATICA_USERBASE="$XDG_CONFIG_HOME"/mathematica
mednafen ~/.mednafen $ export MEDNAFEN_HOME="$XDG_CONFIG_HOME"/mednafen
moc ~/.moc $ mocp -M "$XDG_CONFIG_HOME"/moc

$ mocp -O MOCDir="$XDG_CONFIG_HOME"/moc

most ~/.mostrc $ export MOST_INITFILE="$XDG_CONFIG_HOME"/mostrc
MPlayer ~/.mplayer $ export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
msmtp ~/.msmtprc $ msmtp -C "$XDG_CONFIG_HOME"/msmtp/msmtprc
MySQL ~/.mysql_history $ export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history
ncurses ~/.terminfo $ export TERMINFO="$XDG_DATA_HOME"/terminfo # Precludes system path searching.

$ export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo

ncmpc ~/.ncmpc ncmpc -f "$XDG_CONFIG_HOME"/ncmpc/config
Netbeans ~/.netbeans [82] $ netbeans --userdir "${XDG_CONFIG_HOME}"/netbeans
Node.js ~/.node_repl_history $ export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history [83]
notmuch ~/.notmuch-config [84] $ export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc

$ export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug

npm ~/.npm ~/.npmrc [85] $ export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
npmrc
prefix=${XDG_DATA_HOME}/npm
cache=${XDG_CACHE_HOME}/npm
tmp=${XDG_RUNTIME_DIR}/npm
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js

Node.js を nvmAUR でインストールした場合 prefix は必要ありません (サポートされません)。

nvidia-settings ~/.nvidia-settings-rc $ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings
nvmAUR ~/.nvm $ export NVM_DIR="$XDG_DATA_HOME"/nvm
Octave ~/octave

~/.octave_packages

~/.octave_hist

$ export OCTAVE_HISTFILE="$XDG_CACHE_HOME/octave-hsts"

$ export OCTAVE_SITE_INITFILE="$XDG_CONFIG_HOME/octave/octaverc"

$XDG_CONFIG_HOME/octave/octaverc
source /usr/share/octave/site/m/startup/octaverc;
pkg prefix ~/.local/share/octave/packages ~/.local/share/octave/packages;
pkg local_list /home/<your username>/.local/share/octave/octave_packages;

local_list オプションは絶対パスで指定する必要があります。

openscad ~/.OpenSCAD 7c3077b0f [86] XDG Base Directory Specification に完全には準拠していません。[87] を参照。

現在 ~/.local/shareハードコード されています。

OpenSSL ~/.rnd .rnd ファイルの場所は RANDFILE 環境変数で設定できます。FAQ を参照。
pass ~/.password-store $ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
pidgin ~/.purple [88] $ pidgin --config="$XDG_DATA_HOME"/purple
postgresql ~/.psqlrc

~/.psql_history

~/.pgpass

~/.pg_service.conf

9.2 [89]

[90]

$ export PSQLRC="$XDG_CONFIG_HOME/pg/psqlrc"

$ export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"

$ export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"

$ export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"

ディレクトリを作成する必要があります: $ mkdir "$XDG_CONFIG_HOME/pg" && mkdir "$XDG_CACHE_HOME/pg"

PulseAudio ~/.esd_auth module-esound-protocol-unix.so モジュールによって生成されます。別の場所を使用するように設定することもできますが /etc/pulse/default.pa"$XDG_CONFIG_HOME"/pulse/default.pa でモジュールをコメントアウトしてしまう方が簡単です。
pylint ~/.pylint.d [91] $ export PYLINTHOME="$XDG_CACHE_HOME"/pylint
python-setuptools ~/.python-eggs $ export PYTHON_EGG_CACHE="$XDG_CACHE_HOME"/python-eggs
readline ~/.inputrc $ export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
rlwrap ~/.*_history [92] $ export RLWRAP_HOME="$XDG_DATA_HOME"/rlwrap
RubyGems ~/.gem $ export GEM_HOME="$XDG_DATA_HOME"/gem

$ export GEM_SPEC_CACHE="$XDG_CACHE_HOME"/gem

rustup ~/.rustup [93] $ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
sbt ~/.sbt

~/.ivy2

[94] $ sbt -ivy "$XDG_DATA_HOME"/ivy2 -sbt-dir "$XDG_DATA_HOME"/sbt ([95])
screen ~/.screenrc $ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
stack ~/.stack [96] $ export STACK_ROOT="$XDG_DATA_HOME"/stack
subversion ~/.subversion [97][98][99] $ svn --config-dir "$XDG_CONFIG_HOME"/subversion
task ~/.task ~/.taskrc $ export TASKDATA="$XDG_DATA_HOME"/task $ export TASKRC="$XDG_CONFIG_HOME"/task/taskrc
TeX Live ~/.texliveYYYY (YYYY は年度) $ export TEXMFCNF="${XDG_CONFIG_HOME}/texmf/web2c:$(kpsewhich --var-value='TEXMFCNF')"
$XDG_CONFIG_HOME/texmf/web2c/texmf.cnf
TEXMFHOME=$XDG_DATA_HOME/texmf
TEXMFCONFIG=$XDG_CONFIG_HOME/texmf
TEXMFVAR=$XDG_CACHE_HOME/texmf
tig ~/.tigrc $ export TIGRC_USER="$XDG_CONFIG_HOME"/tig/tigrc
tiptop ~/.tiptoprc .tiptoprc ファイルを必要とします: $ tiptop -W "$XDG_CONFIG_HOME"/tiptop
tmux ~/.tmux.conf [100] [101] $ tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf

$ export TMUX_TMPDIR="$XDG_RUNTIME_DIR"

uncrustify ~/.uncrustify.cfg $ export UNCRUSTIFY_CONFIG="$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg
Unison ~/.unison $ export UNISON="$XDG_DATA_HOME"/unison
urxvtd ~/.urxvt/urxvtd-hostname $ export RXVT_SOCKET="$XDG_RUNTIME_DIR"/urxvtd
WeeChat ~/.weechat [102] $ export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat

$ weechat -d "$XDG_CONFIG_HOME"/weechat

wget ~/.wgetrc ~/.wget-hsts $ export WGETRC="$XDG_CONFIG_HOME/wgetrc"

$ wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"

wine ~/.wine [103] WinetricksWINEPREFIX の管理に XDG のような場所を使用します:

$ mkdir -p "$XDG_DATA_HOME"/wineprefixes

$ export WINEPREFIX="$XDG_DATA_HOME"/wineprefixes/default

xorg-xauth ~/.Xauthority $ export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
xinit ~/.xinitrc ~/.xserverrc $ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc $ export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc

上記の変数は xinit には反映されますが、startx には反映されません。starx では引数としてファイル名を指定してください:

$ startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1

xorg-xrdb ~/.Xresources ~/.Xdefaults xrdb -load ~/.config/X11/xresources のようにパスを指定して xrdb でリソースがロードされるように Xresources使用 することができます。

ハードコードされているソフトウェア

アプリケーション 旧パス 議論 ノート
adb ~/.android [104] $ export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android
AMule ~/.aMule
Android Studio ~/.AndroidStudio2.3

~/.android

~/.java

anthy ~/.anthy [105]
Apache Directory Studio ~/.ApacheDirectoryStudio
Arduino ~/.arduino15

~/.jssc

[106]
arandr ~/.screenlayout
Audacity ~/.audacity-data
Avidemux ~/.avidemux6
bash ~/.bashrc ~/.bash_history ~/.bash_profile ~/.bash_login ~/.bash_logout [107]
  • 指定された bashrc/etc/bashrc から読み込まれます。
  • export HISTFILE="$XDG_DATA_HOME"/bash/history
  • インタラクティブシェルでは ~/.bashrc の代わりに --init-file <file> で指定。
cabal ~/.cabal [108] 対処方法は議論を見てください。簡単な方法ではありませんが Base Directory 準拠をエミュレートできます。
calibre ~/Calibre Library
CUPS ~/.cups [109]
darcs ~/.darcs [110]
dbus ~/.dbus [111] kdbus を使うことで回避できます。
Dia ~/.dia
docker ~/.docker [112] [113]
eclipse ~/.eclipse [114] -Dosgi.configuration.area=@user.home/.config/.. オプションで上書きできますがコマンドラインで指定するのではなく "$ECLIPSE_HOME"/eclipse.ini" に追加する必要があり $ECLIPSE_HOME の書き込み権限が要ります (Arch Linux では $ECLIPSE_HOME/usr/bin/eclipse に決め打ちされています)。
emacs ~/.emacs ~/.emacs.d [115] HOME を設定することができますが、予期せぬ副作用を生みます。他の Emacs 環境変数を修正してロードパスを変更して手動で init ファイルをロードする site ファイルを作成するのが確実ですが、ロードプロセスが大幅に変わってしまいます。
Fetchmail ~/.fetchmailrc
firefox ~/.mozilla [116]
Flatpak ~/.var/ [117] [118]
GHC ~/.ghc [119]
GNU parallel ~/.parallel
gtk-recordMyDesktop ~/.gtk-recordmydesktop
idris ~/.idris [120]
Java (OpenJDK) ~/.java/fonts ~/.java/webview (JavaFX) [121] (RedHat)
julia ~/.juliarc.jl ~/.julia_history [122] [123]
Linux PAM ~/.pam_environment [124] ハードコード: modules/pam_env/pam_env.c
lldb ~/.lldb ~/.lldbinit
mathomatic ~/.mathomaticrc ~/.matho_history rlwrap mathomatic -r を使って RLWRAP_HOME 変数を適切に設定することで履歴を移動できます。
Minecraft ~/.minecraft [125]
mongodb ~/.mongorc.js ~/.dbshell [126] Stack Overflow のスレッド ではコマンドラインスイッチの --norc を使うことを提案しています。
~/.netrc ~/.ssh などの多数のプログラムが使っています。curl (CURLOPT_NETRC_FILE), ftp (NETRC), s-nail (NETRC) なども使用しています。別の場所を設定できるプログラムも存在しますが w3m, wget, lftp など大抵のプログラムは設定が不可能です。
node-gyp ~/.node-gyp [127] [128] [129] 今後、部分的サポートが追加される予定です。
NSS ~/.pki [130]
OpenSSH ~/.ssh [131] DropBear や OpenSSH など多数の ssh デーモンやクライアントが使用します。
palemoon ~/.moonchild productions [132]
perf ~/.debug tools/perf/util/config.c:29 でハードコードされています。
~/.profile 様々なシェルディスプレイマネージャが使用しています。
python ~/.python_history バージョン 3.4 からインタラクティブセッションの履歴は全てデフォルトで ~/.python_history に保存されますが、古いバージョンと同じ方法でカスタムパスを設定できます ([133] を参照)。
Qt Designer ~/.designer
Quod Libet ~/.quodlibet [134]
racket ~/.racketrc
RedNotebook ~/.rednotebook
Remarkable ~/.remarkable
Ren'Py ~/.renpy [135]
SANE ~/.sane/ scanimage によって .cal ファイルが作成されます。
Scribus ~/.scribus
SeaMonkey ~/.mozilla [136]
Solfege ~/.solfege ~/.solfegerc ~/lessonfiles [137]
SpamAssassin ~/.spamassassin
spectrwm ~/.spectrwm
SQLite ~/.sqlite_history ~/.sqliterc [138][139] $ sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc
Steam ~/.steam ~/.steampath ~/.steampid [140] 大抵のゲームエンジン (Unity 3D, Unreal) は仕様に準拠していますが、一部のゲームパブリッシャはパスを Steam Auto-Cloud にハードコードしているため、ゲームのセーブデータが間違ったディレクトリで同期されることがあります。
TeamSpeak ~/.ts3client
TeXmacs ~/.TeXmacs
Thunderbird ~/.thunderbird [141]
tllocalmgr ~/.texlive
vim ~/.vim ~/.vimrc ~/.viminfo 7.3.1178 から vim は ~/.vimrc が存在しない場合に ~/.vim/vimrc を検索します。
"$XDG_CONFIG_HOME"/vim/vimrc
set undodir=$XDG_CACHE_HOME/vim/undo
set directory=$XDG_CACHE_HOME/vim/swap
set backupdir=$XDG_CACHE_HOME/vim/backup
set viminfo+='1000,n$XDG_CACHE_HOME/vim/viminfo
set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
~/.profile
export VIMINIT=":source $XDG_CONFIG_HOME"/vim/vimrc

https://tlvince.com/vim-respect-xdg も参照。

vimperator ~/.vimperatorrc [142] $ export VIMPERATOR_INIT=":source $XDG_CONFIG_HOME/vimperator/vimperatorrc"

$ export VIMPERATOR_RUNTIME="$XDG_CONFIG_HOME"/vimperator

w3m ~/.w3m [143]
wpa_cli ~/.wpa_cli_history
xdg-utils ~/.gnome [144] 何らかの理由で xdg-desktop-menu スクリプトは gnome_user_dir="$HOME/.gnome/apps" をハードコードしており、chromium などによって使われています。
xombrero ~/.xombrero [145]
yarn ~/.yarnrc

~/.yarn/

~/.yarncache/

~/.yarn-config/

[146]
zenmap (nmap) ~/.zenmap [147] [148]
zsh ~/.zshrc ~/.zprofile ~/.zshenv ~/.zlogin ~/.zlogout ~/.histfile [149] ~/.zshenvZDOTDIR=$HOME/.config/zsh を export してください (ブートストラップ問題のためにハードコードされています)。/etc/zsh/zshenv にも追加することで HOME にドットファイルが必要なくなります。ただし root 権限が必要で設定はシステム全体に適用されます。

$ export HISTFILE="$XDG_DATA_HOME"/zsh/history

ライブラリと言語のサポート

C
C99: Cloudef のシンプルな実装
JVM (Java, Kotlin, Clojure, Scala)
directories-jvm
Haskell
1.2.3.0 から directory で公式に対応 ab9d0810ce
xdg-basedir
Perl
File-BaseDir
perl-file-xdg
Python
pyxdg
Ruby
rubyworks/xdg
Rust
directories-rs
Vala
GLib.Environment によるサポート。
get_user_cache_dir, get_user_data_dir, get_user_config_dir などを参照。

参照