「XDG Base Directory」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(ページの作成:「Category:ドットファイル en:XDG Base Directory support {{Related articles start}} {{Related|ドットファイル}} {{Related|Xdg ユーザーディレク...」)
 
(同期)
(2人の利用者による、間の6版が非表示)
3行目: 3行目:
 
{{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年に導入された [http://standards.freedesktop.org/basedir-spec/latest/ XDG Base Directory Specification] を使用しているソフトウェアを整理しています。ここでは一般的に使われているドットファイルと対応状態を並べて仕様がどれだけ使われているか示します。Base Directory Specification に対応していないソフトウェアについては、擬似的に対応させる方法を説明します。
13行目: 13行目:
 
[http://standards.freedesktop.org/basedir-spec/latest/ フルスペック] を読んでください。このセクションでは概要だけを抽出しています。
 
[http://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] を見てください
+
デフォルトでは [http://www.freedesktop.org/software/systemd/man/pam_systemd.html pam_systemd] によって {{ic|XDG_RUNTIME_DIR}} だけが設定されます。既存のディレクトリの絶対パスを使って明示的に他の変数を[[環境変数#変数の定義|定義]]するかどうかはユーザー次第です。
   
 
===ユーザーディレクトリ===
 
===ユーザーディレクトリ===
50行目: 50行目:
 
** デフォルトは {{ic|/etc/xdg}} です。
 
** デフォルトは {{ic|/etc/xdg}} です。
   
==例外==
+
==貢献==
   
  +
ソフトウェアを追加するときは適切なセクションを使ってください。
以下のディレクトリやファイルには長い歴史があり、ファイルやディレクトリがそこにあると想定して書き込みを行うツールが存在するので変更されることはありません。
 
   
  +
コードの評価 ([[vim]] や {{ic|VIMINIT}} など)、パッチやコンパイルオプションが必要な方法、あるいはハードコードと考えられる方法は載せるべきではありません。また、[https://www.haskell.org/cabal/ Haskell の cabal] や eclipse など難しい方法もハードコードとして扱います。
活発に開発あるいはメンテナンスを受けているツールもありますが、前述の理由により 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}} と類似。
 
 
==貢献==
 
   
  +
* 1番目のカラムはプロジェクト名です。できればコマンド名にしてください。ソフトウェアのウェブサイトか適切な wiki の記事にリンクさせます。
When contributing make sure to use the correct section.
 
   
  +
* 2番目のカラムはプロジェクトが使用するレガシーなファイルやディレクトリです。もはや読み込まれない場合でも確認できるように記述してください。
Nothing should require code evaluation (such as [[vim]] and {{ic|VIMINIT}}), patches or compile-time options to gain support and anything which does must be deemed hardcoded. Additionally if the process is too error prone or difficult, such as [https://www.haskell.org/cabal/ Haskell's cabal] or eclipse, they should also be considered as hardcoded.
 
   
  +
* 3番目のカラムは XDG Base Directory に切り替わったプロジェクトのコミットあるいはバージョンです。4番目のカラムにはその議論がある場合にリンクを載せてください。
* The first column should be the project name, ideally the command name if it is not ambigious, linked to their website or an appropriate internal wiki article.
 
 
* The second column is for any legacy files and directories the project had, this is done so people can find them even if they are no longer read.
 
 
* In the third, try to find the commit or version a project switched to XDG Base Directory or any open discussions and include them in the next two columns.
 
 
* Finally the fourth should include any appropriate workarounds or solutions for unsupported projects. Be terse, this article assumes intelligence and good charity from the reader. If something is unclear then feel free to expend some explanation to clarify it.
 
   
  +
* 最後のカラムにはサポートしていないプロジェクトのための適切な対処方法を記載します。簡潔に書いてください。曖昧な部分がある場合は自由に追記してください。
Lastly, and this goes without saying, please verify that your solution is correct and functional.
 
   
 
==サポートしているソフトウェア==
 
==サポートしているソフトウェア==
92行目: 72行目:
 
! 議論
 
! 議論
 
! ノート
 
! ノート
  +
|-
  +
| [https://github.com/SirCmpwn/aerc aerc]
  +
|
  +
|
  +
|
  +
|
 
|-
 
|-
 
| [https://github.com/Antimicro/antimicro/ antimicro]
 
| [https://github.com/Antimicro/antimicro/ antimicro]
105行目: 91行目:
 
|
 
|
 
|-
 
|-
| [[beets]]
+
| [[blender]]
|
 
|
 
|
 
|-
 
| [http://www.blender.org/ 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]
134行目: 115行目:
 
|
 
|
 
|-
 
|-
  +
| [[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]
156行目: 143行目:
 
| [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]
177行目: 170行目:
 
|-
 
|-
 
| [[fontconfig]]
 
| [[fontconfig]]
| {{ic|~/.fontconfig}}
+
| {{ic|~/.fontconfig}} {{ic|~/.fonts}}
 
| [http://cgit.freedesktop.org/fontconfig/commit/?id=8c255fb1 8c255fb1]
 
| [http://cgit.freedesktop.org/fontconfig/commit/?id=8c255fb1 8c255fb1]
 
|
 
|
  +
| フォントの保存には {{ic|"$XDG_DATA_HOME"/fonts}} を使ってください。
|
 
 
|-
 
|-
 
| [http://fontforge.github.io/ fontforge]
 
| [http://fontforge.github.io/ fontforge]
187行目: 180行目:
 
| [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]
204行目: 191行目:
 
| [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]
 
|
 
|
 
|-
 
|-
212行目: 206行目:
 
|
 
|
 
|-
 
|-
| [[GStreamer|gstreamer-1.0]]
+
| [[GStreamer|gstreamer]]
  +
| {{ic|~/.gstreamer-0.10}}
|
 
 
| [http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4e36f93924cf 4e36f93924cf]
 
| [http://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]
224行目: 218行目:
 
|
 
|
 
|-
 
|-
  +
| [[アプリケーション一覧/ユーティリティ#システム監視|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]
236行目: 230行目:
 
|
 
|
 
|-
 
|-
| [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]
254行目: 248行目:
 
|
 
|
 
|-
 
|-
| [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]
290行目: 290行目:
 
|
 
|
 
|-
 
|-
  +
| [[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]
300行目: 307行目:
 
| [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]]
313行目: 325行目:
 
|
 
|
 
|-
 
|-
  +
| [[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]
 
|
 
|
 
|-
 
|-
353行目: 377行目:
 
| [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]
 
|
 
|
 
|-
 
|-
359行目: 389行目:
 
| [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]
 
|
 
|
 
|-
 
|-
371行目: 407行目:
 
| [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]
  +
|
 
|
 
|
 
|-
 
|-
396行目: 438行目:
 
| [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]]
407行目: 455行目:
 
| [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]
|
+
|
  +
|-
  +
| [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]]
431行目: 491行目:
 
|
 
|
 
|
 
|
  +
|
  +
|-
  +
| [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]
 
|
 
|
 
|-
 
|-
443行目: 509行目:
 
| [http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=570b32100 570b32100]
 
| [http://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]
 
|
 
|
 
|-
 
|-
449行目: 521行目:
 
|
 
|
 
|
 
|
  +
|
  +
|-
  +
| [[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]
 
|
 
|
 
|-
 
|-
455行目: 540行目:
 
| [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]
 
|
 
|
 
|-
 
|-
469行目: 560行目:
 
|
 
|
 
|-
 
|-
  +
| [[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]
 
|
 
|
 
|}
 
|}
494行目: 585行目:
 
|
 
|
 
|
 
|
| {{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}}
 
 
|-
 
|-
| [[Atom]]
+
| [[Anki]]
| {{ic|~/.atom}}
+
| {{ic|~/Anki}} {{ic|~/Documents/Anki}}
 
|
 
|
  +
| [https://github.com/dae/anki/pull/49] [https://github.com/dae/anki/pull/58]
|
 
| {{ic|1=$ export ATOM_HOME="$XDG_DATA_HOME"/atom}}
+
| {{ic|1=$ anki -b "$XDG_DATA_HOME"/Anki}}
 
|-
 
|-
 
| [[aspell]]
 
| [[aspell]]
508行目: 598行目:
 
|
 
|
 
|
 
|
  +
|-
  +
| [[Atom]]
  +
| {{ic|~/.atom}}
  +
|
  +
| [https://github.com/atom/atom/issues/8281]
  +
| {{ic|1=$ export ATOM_HOME="$XDG_DATA_HOME"/atom}}
 
|-
 
|-
 
| [[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]
 
| {{ic|1=$ export CARGO_HOME="$XDG_DATA_HOME"/cargo}}
 
| {{ic|1=$ export CARGO_HOME="$XDG_DATA_HOME"/cargo}}
 
|-
 
|-
520行目: 616行目:
 
|
 
|
 
| {{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]]
527行目: 629行目:
 
| {{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|1=$ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/ # Trailing '/' is required.}}
 
|-
 
| [[PHP#Composer|composer]]
 
| {{ic|~/.composer}}
 
 
|
 
|
 
|
 
|
| {{ic|1=$ export COMPOSER_HOME="$XDG_CONFIG_HOME"/composer
+
| {{ic|$ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"}}
$ export COMPOSER_CACHE_DIR="$XDG_CACHE_HOME"/composer}}
 
 
|-
 
|-
  +
| [http://www.dungeoncrawl.org/ crawl]
| [[coreutils]]
 
| {{ic|~/.dircolors}}
+
| {{ic|~/.crawl}}
 
|
 
|
 
|
 
|
  +
| 末尾の '/' は必須です: {{ic|1=$ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/}}。
| {{ic|$ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"}}
 
 
|-
 
|-
  +
| [[dict]]
| [http://sourceforge.net/projects/dict/ dict]
 
 
| {{ic|~/.dictrc}}
 
| {{ic|~/.dictrc}}
 
|
 
|
561行目: 656行目:
 
| {{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}}
567行目: 662行目:
 
{{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]
 
| [http://www.gnu.org/software/gdb/ gdb]
577行目: 672行目:
 
|
 
|
 
|
 
|
| {{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}}
 
|-
 
|-
 
| [http://guichaz.free.fr/gliv/ gliv]
 
| [http://guichaz.free.fr/gliv/ gliv]
594行目: 689行目:
 
| {{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]]
609行目: 721行目:
 
|
 
|
 
| {{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]
615行目: 733行目:
 
| [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]]
630行目: 741行目:
 
{{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}}
 
|
 
|
636行目: 753行目:
 
| {{ic|$ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc}}
 
| {{ic|$ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc}}
 
|-
 
|-
  +
| [[less]]
| [ftp://www.x.org/pub/xorg/current/doc/libICE/ice.html libice]
 
| {{ic|~/.ICEauthority}}
 
|
 
|
 
| {{ic|1=$ export ICEAUTHORITY="$XDG_RUNTIME_DIR"/X11/iceauthority}}
 
|-
 
| [http://www.greenwoodsoftware.com/less/ less]
 
 
| {{ic|~/.lesshst}}
 
| {{ic|~/.lesshst}}
 
|
 
|
657行目: 768行目:
 
| [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|1=$ export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose}}
 
|-
 
|-
 
| [http://ltrace.org/ ltrace]
 
| [http://ltrace.org/ ltrace]
663行目: 787行目:
 
|
 
|
 
| {{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]]
689行目: 827行目:
 
| {{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}}
 
{{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]]
 
| {{ic|~/.notmuch-config}}
 
 
|
 
|
  +
| {{ic|1=$ msmtp -C "$XDG_CONFIG_HOME"/msmtp/msmtprc}}
| [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}}
 
 
|-
 
|-
 
| {{pkg|ncurses}}
 
| {{pkg|ncurses}}
714行目: 839行目:
 
| {{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]]
720行目: 870行目:
 
| [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}} は必要ありません (サポートされません)。
 
|-
 
|-
 
| [[NVIDIA]], [[CUDA]]
 
| [[NVIDIA]], [[CUDA]]
729行目: 884行目:
 
| {{ic|1=$ export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
 
| {{ic|1=$ export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
 
{{ic|1=$ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
 
{{ic|1=$ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv}}
  +
|-
  +
| [https://github.com/NVIDIA/nvidia-settings nvidia-settings]
  +
| {{ic|~/.nvidia-settings-rc}}
  +
|
  +
|
  +
| {{ic|1=$ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings}}
  +
|-
  +
| {{AUR|nvm}}
  +
| {{ic|~/.nvm}}
  +
|
  +
|
  +
| {{ic|1=$ export NVM_DIR="$XDG_DATA_HOME"/nvm}}
 
|-
 
|-
 
| [http://www.openscad.org/ openscad]
 
| [http://www.openscad.org/ openscad]
737行目: 904行目:
   
 
現在 {{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}}
  +
|
  +
|
  +
| {{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://pypi.python.org/pypi/setuptools python-setuptools]
 
| [https://pypi.python.org/pypi/setuptools python-setuptools]
755行目: 966行目:
 
| [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}}
 
|-
 
|-
 
| [[screen]]
 
| [[screen]]
762行目: 993行目:
 
| {{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}}
 
|
 
|
771行目: 1,002行目:
 
| {{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}}
 
|-
 
|-
 
| [http://jonas.nitro.dk/tig/ tig]
 
| [http://jonas.nitro.dk/tig/ tig]
779行目: 1,016行目:
 
|
 
|
 
| {{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]]
785行目: 1,028行目:
 
| [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] [http://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]]
799行目: 1,054行目:
 
| {{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|1=$ export WGETRC="$XDG_CONFIG_HOME/wgetrc"}}
 
|-
 
|-
 
| [[wine]]
 
| [[wine]]
804行目: 1,065行目:
 
|
 
|
 
| [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}}
810行目: 1,074行目:
 
|
 
|
 
|
 
|
| {{ic|1=$ export XAUTHORITY="$XDG_RUNTIME_DIR"/X11/xauthority}}
+
| {{ic|1=$ export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority}}
|-
 
| [http://www.x.org/wiki/ libx11]
 
| {{ic|~/.XCompose}}
 
|
 
|
 
| {{ic|1=$ export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose}}
 
 
|-
 
|-
 
| {{pkg|xorg-xinit}}
 
| {{pkg|xorg-xinit}}
| {{ic|~/.xinitrc}}
+
| {{ic|~/.xinitrc}} {{ic|~/.xserverrc}}
 
|
 
|
 
|
 
|
| {{ic|1=$ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc}}
+
| {{ic|1=$ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc}} {{ic|1=$ export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc}}
 
|-
 
|-
 
| {{pkg|xorg-xrdb}}
 
| {{pkg|xorg-xrdb}}
829行目: 1,087行目:
 
|
 
|
 
| {{ic|xrdb -load ~/.config/X11/xresources}} のようにパスを指定して {{ic|xrdb}} でリソースがロードされるように {{ic|Xresources}} を [http://superuser.com/questions/243914/xresources-or-xdefaults 使用] することができます。
 
| {{ic|xrdb -load ~/.config/X11/xresources}} のようにパスを指定して {{ic|xrdb}} でリソースがロードされるように {{ic|Xresources}} を [http://superuser.com/questions/243914/xresources-or-xdefaults 使用] することができます。
|-
 
| [https://github.com/bengardner/uncrustify uncrustify]
 
| {{ic|~/.uncrustify.cfg}}
 
|
 
|
 
| {{ic|1=$ export UNCRUSTIFY_CONFIG="$XDG_CONFIG_HOME"/uncrustify/uncrustify.cfg}}
 
|-
 
| [http://www.vergenet.net/~conrad/software/xsel/ xsel]
 
| {{ic|~/.xsel.log}}
 
|
 
| [https://github.com/kfish/xsel/issues/10]
 
| {{ic|1=$ xsel --logfile "$XDG_CACHE_HOME"/xsel/xsel.log}}
 
|-
 
| [https://github.com/cisco/ChezScheme ChezScheme]
 
| {{ic|~/.chezscheme_history}}
 
|
 
|
 
| {{ic|1=$ petite --eehistory "$XDG_DATA_HOME"/chezscheme/history}}
 
|-
 
| [https://github.com/NVIDIA/nvidia-settings nvidia-settings]
 
| {{ic|~/.nvidia-settings-rc}}
 
|
 
|
 
| {{ic|1=$ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings}}
 
|-
 
| [https://github.com/get-iplayer/get_iplayer get_iplayer]
 
| {{ic|~/.get_iplayer}}
 
|
 
|
 
| {{ic|1=$ export GETIPLAYERUSERPREFS="$XDG_DATA_HOME"/get_iplayer}}
 
 
|}
 
|}
   
866行目: 1,094行目:
 
! アプリケーション
 
! アプリケーション
 
! 旧パス
 
! 旧パス
! 対応開始
 
 
! 議論
 
! 議論
 
! ノート
 
! ノート
  +
|-
  +
| [[ADB|adb]]
  +
| {{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}}
  +
|
  +
|
  +
|-
  +
| [[Android#Android Studio|Android Studio]]
  +
| {{ic|~/.AndroidStudio2.3}}
  +
  +
{{ic|~/.android}}
  +
  +
{{ic|~/.java}}
  +
|
  +
|
  +
|-
  +
| [https://osdn.net/projects/anthy/ anthy]
  +
| {{ic|~/.anthy}}
  +
| [https://osdn.net/ticket/browse.php?group_id=14&tid=28397]
  +
|
 
|-
 
|-
 
| [https://directory.apache.org/studio/ Apache Directory Studio]
 
| [https://directory.apache.org/studio/ Apache Directory Studio]
 
| {{ic|~/.ApacheDirectoryStudio}}
 
| {{ic|~/.ApacheDirectoryStudio}}
 
|
 
|
  +
|
  +
|-
  +
| [https://www.audacityteam.org/ Audacity]
  +
| {{ic|~/.audacity-data}}
 
|
 
|
 
|
 
|
 
|-
 
|-
  +
| [http://fixounet.free.fr/avidemux/ Avidemux]
| [[AMule]]
 
| {{ic|~/.aMule}}
+
| {{ic|~/.avidemux6}}
|
 
 
|
 
|
 
|
 
|
884行目: 1,138行目:
 
| [[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>}} で指定。
 
|-
 
|-
  +
| [[bazaar]]
| [https://www.haskell.org/cabal/ cabal]
 
| {{ic|~/.cabal}}
+
| {{ic|~/.bazaar}}
  +
  +
{{ic|~/.bzr.log}}
 
|
 
|
  +
|
  +
|-
  +
| [[Haskell|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}}
  +
|
 
|-
 
|-
 
| [[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}} に決め打ちされています)。
916行目: 1,187行目:
 
| [[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]]
  +
| {{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]
 
|
 
|
 
|-
 
|-
929行目: 1,213行目:
 
| {{ic|~/.parallel}}
 
| {{ic|~/.parallel}}
 
|
 
|
  +
|
  +
|-
  +
| [[RecordMyDesktop|gtk-recordMyDesktop]]
  +
| {{ic|~/.gtk-recordmydesktop}}
 
|
 
|
 
|
 
|
|-
 
| [[GStreamer|gstreamer-0.10]]
 
| {{ic|~/.gstreamer-0.10}}
 
|
 
|
 
| [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]
|
 
|
 
 
|
 
|
 
|-
 
|-
| [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}}
|
 
 
|
 
|
 
|
 
|
958行目: 1,242行目:
 
| [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}} を使うことを提案しています。
 
| [http://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 など大抵のプログラムは設定が不可能です。
  +
|-
  +
| [[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]
 
|
 
|
989行目: 1,278行目:
 
| {{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.scribus.net/ Scribus]
  +
| {{ic|~/.scribus}}
  +
|
  +
|-
  +
| [http://www.seamonkey-project.org/ SeaMonkey]
  +
| {{ic|~/.mozilla}}
  +
| [https://bugzil.la/726939]
  +
|
  +
|-
  +
| [[Skype]] < 5.0
  +
| {{ic|~/.Skype}}
  +
| [https://community.skype.com/t5/Linux-archive/Skype-violates-XDG-basedir-spec-on-linux/td-p/4175884]
  +
|
  +
|-
  +
| [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]
 
|
 
|
  +
|-
| [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]
 
  +
| [[TeamSpeak]]
  +
| {{ic|~/.ts3client}}
  +
|
  +
|-
  +
| [http://www.texmacs.org/ TeXmacs]
  +
| {{ic|~/.TeXmacs}}
  +
|
  +
|
  +
|-
  +
| [[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,$XDG_CONFIG_HOME/vim/after,$VIMRUNTIME
 
}}
 
}}
   
  +
{{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}}
 
|-
 
|-
  +
| [[WPA supplicant#wpa_cli で接続する|wpa_cli]]
| [http://w1.fi/ wpa_cli]
 
 
| {{ic|~/.wpa_cli_history}}
 
| {{ic|~/.wpa_cli_history}}
|
 
 
|
 
|
 
|
 
|
1,046行目: 1,406行目:
 
| {{pkg|xdg-utils}}
 
| {{pkg|xdg-utils}}
 
| {{ic|~/.gnome}}
 
| {{ic|~/.gnome}}
|
 
 
|
 
|
 
| 何らかの理由で {{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]
 
|
 
|
 
|-
 
|-
 
| [[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,081行目: 1,437行目:
 
: [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 directories]
  +
  +
; [[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]
 
: [http://freedesktop.org/wiki/Software/pyxdg/ pyxdg]
  +
  +
; [[Ruby]]
  +
: [https://github.com/rubyworks/xdg rubyworks/xdg]
   
 
; Vala
 
; Vala
1,098行目: 1,460行目:
 
==参照==
 
==参照==
   
  +
* [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]

2017年12月30日 (土) 17: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 の cabal や eclipse など難しい方法もハードコードとして扱います。

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

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

アプリケーション 旧パス 対応開始 議論 ノート
aerc
antimicro ~/.antimicro edba864 [1]
aria2 ~/.aria2 8bc1d37 [2]
blender ~/.blender 4293f473 [3]
burp f2388e9
chromium ~/.chromium 23057 [4] [5]
citra ~/.citra-emu f7c3193fec [6]
composer ~/.composer 1.0.0-beta1 [7]
cower 8b70805
d-feet ~/.d-feet 7f6104b
dconf
dolphin-emu ~/.dolphin-emu a498c68 [8]
dr14-meter 7e777ca64 [9] ハードコード: $HOME/.config/dr14meter
dunst 78b6e2b1 [10]
dwb
fish
fontconfig ~/.fontconfig ~/.fonts 8c255fb1 フォントの保存には "$XDG_DATA_HOME"/fonts を使ってください。
fontforge ~/.FontForge ~/.PfaEdit e4c2cc7432 [11] [12]
freerdp ~/.freerdp edf6e7258d
gconf ~/.gconf fc28caa7 [13]
GIMP ~/.gimp-x.y

~/.thumbnails

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

d138908c

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

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

アプリケーション 旧パス 対応開始 議論 ノート
abook ~/.abook $ abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_CACHE_HOME"/abook/addressbook
Anki ~/Anki ~/Documents/Anki [59] [60] $ anki -b "$XDG_DATA_HOME"/Anki
aspell ~/.aspell.conf
Atom ~/.atom [61] $ export ATOM_HOME="$XDG_DATA_HOME"/atom
cargo ~/.cargo [62] [63] [64] $ 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 [65] $ conky --config="$XDG_CONFIG_HOME"/conky/conkyrc
coreutils ~/.dircolors $ source "$(dircolors "$XDG_CONFIG_HOME"/dircolors)"
crawl ~/.crawl 末尾の '/' は必須です: $ export CRAWL_DIR="$XDG_DATA_HOME"/crawl/
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 [66] $ 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 [67] $ 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
gliv ~/.glivrc $ gliv --glivrc="$XDG_CONFIG_HOME"/gliv/glivrc
gpg ~/.gnupg [68] [69] $ 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 [70] $ 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 [71] $ 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 [72] irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi
isync ~/.mbsyncrc $ mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc
less ~/.lesshst $ export LESSHISTFILE="$XDG_CACHE_HOME"/less/history ("$XDG_CACHE_HOME"/less ディレクトリを手動で作成する必要があります)。

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

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

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

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

libx11 ~/.XCompose $ export XCOMPOSEFILE="$XDG_CONFIG_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

MPlayer ~/.mplayer $ export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
msmtp ~/.msmtprc $ msmtp -C "$XDG_CONFIG_HOME"/msmtp/msmtprc
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 [75] $ netbeans --userdir "${XDG_CONFIG_HOME}"/netbeans
Node.js ~/.node_repl_history $ export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history [76]
notmuch ~/.notmuch-config [77] $ export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc

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

npm ~/.npm ~/.npmrc [78] $ 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, CUDA ~/.nv $ export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv

$ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv

nvidia-settings ~/.nvidia-settings-rc $ nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings
nvmAUR ~/.nvm $ export NVM_DIR="$XDG_DATA_HOME"/nvm
openscad ~/.OpenSCAD 7c3077b0f [79] XDG Base Directory Specification に完全には準拠していません。[80] を参照。

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

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

~/.psql_history

~/.pgpass

~/.pg_service.conf

9.2 [81]

[82]

$ 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 でモジュールをコメントアウトしてしまう方が簡単です。
python-setuptools ~/.python-eggs $ export PYTHON_EGG_CACHE="$XDG_CACHE_HOME"/python-eggs
readline ~/.inputrc $ export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
rlwrap ~/.*_history [83] $ 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 [84] $ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
sbt ~/.sbt

~/.ivy2

[85] $ sbt -ivy "$XDG_DATA_HOME"/ivy2 -sbt-dir "$XDG_DATA_HOME"/sbt
screen ~/.screenrc $ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
stack ~/.stack [86] $ export STACK_ROOT="$XDG_DATA_HOME"/stack
subversion ~/.subversion [87][88][89] $ svn --config-dir "$XDG_CONFIG_HOME"/subversion
task ~/.task ~/.taskrc $ export TASKDATA="$XDG_DATA_HOME"/task $ export TASKRC="$XDG_CONFIG_HOME"/task/taskrc
tig ~/.tigrc $ export TIGRC_USER="$XDG_CONFIG_HOME"/tig/tigrc
tiptop ~/.tiptoprc .tiptoprc ファイルを必要とします: $ tiptop -W "$XDG_CONFIG_HOME"/tiptop
tmux ~/.tmux.conf [90] [91] $ 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 [92] $ export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat

$ weechat -d "$XDG_CONFIG_HOME"/weechat

wget ~/.wgetrc $ export WGETRC="$XDG_CONFIG_HOME/wgetrc"
wine ~/.wine [93] WinetricksWINEPREFIX の管理に XDG のような場所を使用します:

$ mkdir -p "$XDG_DATA_HOME"/wineprefixes

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

xorg-xauth ~/.Xauthority $ export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
xorg-xinit ~/.xinitrc ~/.xserverrc $ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc $ export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
xorg-xrdb ~/.Xresources ~/.Xdefaults xrdb -load ~/.config/X11/xresources のようにパスを指定して xrdb でリソースがロードされるように Xresources使用 することができます。

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

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

~/.android

~/.java

anthy ~/.anthy [95]
Apache Directory Studio ~/.ApacheDirectoryStudio
Audacity ~/.audacity-data
Avidemux ~/.avidemux6
bash ~/.bashrc ~/.bash_history ~/.bash_profile ~/.bash_login ~/.bash_logout [96]
  • 指定された bashrc/etc/bashrc から読み込まれます。
  • export HISTFILE="$XDG_DATA_HOME"/bash/history
  • インタラクティブシェルでは ~/.bashrc の代わりに --init-file <file> で指定。
bazaar ~/.bazaar

~/.bzr.log

cabal ~/.cabal [97] 対処方法は議論を見てください。簡単な方法ではありませんが Base Directory 準拠をエミュレートできます。
calibre ~/Calibre Library
CUPS ~/.cups [98]
darcs ~/.darcs [99]
dbus ~/.dbus [100] kdbus を使うことで回避できます。
Dia ~/.dia
eclipse ~/.eclipse [101] -Dosgi.configuration.area=@user.home/.config/.. オプションで上書きできますがコマンドラインで指定するのではなく "$ECLIPSE_HOME"/eclipse.ini" に追加する必要があり $ECLIPSE_HOME の書き込み権限が要ります (Arch Linux では $ECLIPSE_HOME/usr/bin/eclipse に決め打ちされています)。
emacs ~/.emacs ~/.emacs.d [102] HOME を設定することができますが、予期せぬ副作用を生みます。他の Emacs 環境変数を修正してロードパスを変更して手動で init ファイルをロードする site ファイルを作成するのが確実ですが、ロードプロセスが大幅に変わってしまいます。
Fetchmail ~/.fetchmailrc
firefox ~/.mozilla [103]
Flatpak ~/.var/ [104] [105]
GHC ~/.ghc [106]
GNU parallel ~/.parallel
gtk-recordMyDesktop ~/.gtk-recordmydesktop
idris ~/.idris [107]
julia ~/.juliarc.jl ~/.julia_history [108] [109]
Linux PAM ~/.pam_environment [110] ハードコード: modules/pam_env/pam_env.c
lldb ~/.lldb ~/.lldbinit
mathomatic ~/.mathomaticrc ~/.matho_history rlwrap mathomatic -r を使って RLWRAP_HOME 変数を適切に設定することで履歴を移動できます。
Minecraft ~/.minecraft [111]
mongodb ~/.mongorc.js ~/.dbshell [112] Stack Overflow のスレッド ではコマンドラインスイッチの --norc を使うことを提案しています。
~/.netrc ~/.ssh などの多数のプログラムが使っています。curl (CURLOPT_NETRC_FILE), ftp (NETRC), s-nail (NETRC) なども使用しています。別の場所を設定できるプログラムも存在しますが w3m, wget, lftp など大抵のプログラムは設定が不可能です。
NSS ~/.pki [113]
OpenSSH ~/.ssh [114] DropBear や OpenSSH など多数の ssh デーモンやクライアントが使用します。
palemoon ~/.moonchild productions [115]
perf ~/.debug tools/perf/util/config.c:29 でハードコードされています。
~/.profile 様々なシェルディスプレイマネージャが使用しています。
python ~/.python_history バージョン 3.4 からインタラクティブセッションの履歴は全てデフォルトで ~/.python_history に保存されますが、古いバージョンと同じ方法でカスタムパスを設定できます ([116] を参照)。
Qt Designer ~/.designer
Quod Libet ~/.quodlibet [117]
racket ~/.racketrc
RedNotebook ~/.rednotebook
Remarkable ~/.remarkable
Scribus ~/.scribus
SeaMonkey ~/.mozilla [118]
Skype < 5.0 ~/.Skype [119]
Solfege ~/.solfege ~/.solfegerc ~/lessonfiles [120]
SpamAssassin ~/.spamassassin
spectrwm ~/.spectrwm
SQLite ~/.sqlite_history ~/.sqliterc [121][122] $ sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc
Steam ~/.steam

~/.steampath ~/.steampid

[123]
TeamSpeak ~/.ts3client
TeXmacs ~/.TeXmacs
Thunderbird ~/.thunderbird [124]
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,$XDG_CONFIG_HOME/vim/after,$VIMRUNTIME
~/.profile
export VIMINIT=":source $XDG_CONFIG_HOME"/vim/vimrc

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

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

$ export VIMPERATOR_RUNTIME="$XDG_CONFIG_HOME"/vimperator

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

~/.yarn/

~/.yarncache/

~/.yarn-config/

[127]
zsh ~/.zshrc ~/.zprofile ~/.zshenv ~/.zlogin ~/.zlogout ~/.histfile [128] ~/.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
Haskell
1.2.3.0 から directory で公式に対応 ab9d0810ce
xdg-basedir
Perl
File-BaseDir
perl-file-xdg
Python
pyxdg
Ruby
rubyworks/xdg
Vala
GLib.Environment によるサポート。
get_user_cache_dir, get_user_data_dir, get_user_config_dir などを参照。

参照