Autostarting (简体中文)
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
本文介绍在某个特定事件发生时(如启动、关机)如何自动执行脚本或应用的方法。
开关机
用 systemd 服务。
登录登出
用 systemd/User 服务。
插入拔出设备
用 udev
计时事件
在特定时间、日期、场合执行脚本或应用:
只执行一次:
文件系统事件
用 inotify 事件监视器:
shell登录登出
参考 Command-line shell#Configuration files。
Xorg
桌面环境
大多数 桌面环境 依赖 XDG Autostart.
查看与自动启动相关的信息。
窗口管理启动
许多window manager (简体中文) 依赖 XDG Autostart.
查看与窗口管理有关的信息。