xprofile (简体中文)
xprofile 文件,~/.xprofile 以及 /etc/xprofile, 允许您在刚打开 X 会话时运行命令 - 在窗口管理器运行之前。Xprofile 用于随会话自动运行程序,或从显示管理器启动,尤其是那个会话没有自带自动启动程序功能时 - 比如一个独立的窗口管理器。
xprofile 文件在语法和概念上类似 xinitrc (简体中文), ~/.xinitrc 和 /etc/X11/xinit/xinitrc.d/.
兼容性
xprofile 和 xinitrc 文件在原生情况下会被以下显示管理器引用:
配置
首先,如果文件不存在的话创建 ~/.xprofile. 然后只需加入你想要随会话一同启动的程序的命令。见以下:
~/.xprofile
tint2 & nm-applet &
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.