「XDG 自動起動」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(最新に差し替え)
(→‎ディレクトリ: 情報を更新)
 
(2人の利用者による、間の5版が非表示)
4行目: 4行目:
 
[[hu:XDG Autostart]]
 
[[hu:XDG Autostart]]
 
[[pt:XDG Autostart]]
 
[[pt:XDG Autostart]]
  +
[[ru:XDG Autostart]]
 
[[zh-hans:XDG Autostart]]
 
[[zh-hans:XDG Autostart]]
The [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html XDG Autostart specification] defines a method for [[autostarting]] ordinary [[desktop entries]] on [[desktop environment]] startup and removable medium mounting, by placing them in specific [[#Directories]].
+
[https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html XDG Autostart Specifications] [[デスクトップ環境]]の起動時や、リムーバブルメディアのマウント時に通常の[[デスクトップエントリ]]を特定の[[#ディレクトリ]]に配置して[[自動起動]]させる方法を定義しています。
   
== Prerequisites ==
+
== 前提条件 ==
   
  +
対応した[[デスクトップ環境]]か、次のような専用の実装を使う必要があります。
You need to use either a [[desktop environment]] that supports it, or a dedicated implementation, like:
 
   
 
* {{pkg|dex}}
 
* {{pkg|dex}}
17行目: 18行目:
 
* [https://systemd.io/DESKTOP_ENVIRONMENTS/#xdg-autostart-integration systemd-xdg-autostart-generator]
 
* [https://systemd.io/DESKTOP_ENVIRONMENTS/#xdg-autostart-integration systemd-xdg-autostart-generator]
   
== Directories ==
+
== ディレクトリ ==
   
  +
Autostart ディレクトリは、優先順位が高い順に次のとおりです。
The Autostart directories in order of preference are:
 
   
* user-specific: {{ic|$XDG_CONFIG_HOME/autostart}} ({{ic|~/.config/autostart}} by default)
+
* ユーザー固有: {{ic|$XDG_CONFIG_HOME/autostart}} (デフォルトは {{ic|~/.config/autostart}})
* system-wide: {{ic|$XDG_CONFIG_DIRS/autostart}} ({{ic|/etc/xdg/autostart}} by default)[https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#referencing]
+
* システム全体: {{ic|$XDG_CONFIG_DIRS/autostart}} (デフォルトは {{ic|/etc/xdg/autostart}})[https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#referencing]
   
  +
システム全体の[[デスクトップエントリ]]は、同じファイル名のユーザー固有のエントリーに上書きすることができます。
System-wide [[desktop entries]] can be overridden by user-specific entries with the same filename.
 
   
  +
{{Tip|
{{Tip|To disable a system-wide entry, create an overriding entry containing {{ic|1=Hidden=true}}.}}
 
  +
* システム全体のエントリを無効にするには、{{ic|1=Hidden=true}} を含むオーバーライドエントリを作成します。
  +
* 自動起動プログラムを一覧表示するには、{{Pkg|dex}} を [[インストール]] して、{{ic|dex -ad}} を実行します。
  +
}}
   
For more details, read [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html the specification].
+
詳しくは、[https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html 仕様書] を読んで下さい。
  +
  +
{{TranslationStatus|XDG_Autostart|2023-11-24|726106}}

2023年11月24日 (金) 04:56時点における最新版

XDG Autostart Specificationsデスクトップ環境の起動時や、リムーバブルメディアのマウント時に通常のデスクトップエントリを特定の#ディレクトリに配置して自動起動させる方法を定義しています。

前提条件

対応したデスクトップ環境か、次のような専用の実装を使う必要があります。

ディレクトリ

Autostart ディレクトリは、優先順位が高い順に次のとおりです。

  • ユーザー固有: $XDG_CONFIG_HOME/autostart (デフォルトは ~/.config/autostart)
  • システム全体: $XDG_CONFIG_DIRS/autostart (デフォルトは /etc/xdg/autostart)[1]

システム全体のデスクトップエントリは、同じファイル名のユーザー固有のエントリーに上書きすることができます。

ヒント:
  • システム全体のエントリを無効にするには、Hidden=true を含むオーバーライドエントリを作成します。
  • 自動起動プログラムを一覧表示するには、dexインストール して、dex -ad を実行します。

詳しくは、仕様書 を読んで下さい。

翻訳ステータス: このページは en:XDG_Autostart の翻訳バージョンです。最後の翻訳日は 2023-11-24 です。もし英語版に 変更 があれば、翻訳の同期を手伝うことができます。