在 Debian 中设置开机自动启动的方法

From 清冽之泉
Revision as of 10:22, 10 May 2026 by Mwroot (talk | contribs) (Created page with "先用 which sth 查一下 sth 的位置。 再建立 ~/.config/autostart/sth.desktop。 最后在 sth.desktop 里写入: <syntaxhighlight lang="bash" line> [Desktop Entry] Type=Application Name=sth Exec=/usr/bin/sth Path=/usr/bin Terminal=false X-GNOME-Autostart-enabled=true </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

先用 which sth 查一下 sth 的位置。

再建立 ~/.config/autostart/sth.desktop。

最后在 sth.desktop 里写入:

[Desktop Entry]
Type=Application
Name=sth
Exec=/usr/bin/sth
Path=/usr/bin
Terminal=false
X-GNOME-Autostart-enabled=true