在 Debian 中设置开机自动启动的方法: Difference between revisions
Jump to navigation
Jump to search
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>" |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
先用 which sth 查一下 sth 的位置。 | 先用<code>which sth</code>查一下 sth 的位置。 | ||
再建立 ~/.config/autostart/sth.desktop。 | 再建立 ~/.config/autostart/sth.desktop。 | ||
最后在 sth.desktop 里写入: | 最后在 sth.desktop 里写入: | ||
< | <pre> | ||
[Desktop Entry] | [Desktop Entry] | ||
Type=Application | Type=Application | ||
| Line 12: | Line 12: | ||
Terminal=false | Terminal=false | ||
X-GNOME-Autostart-enabled=true | X-GNOME-Autostart-enabled=true | ||
</ | </pre> | ||
就可以了。 | |||
Latest revision as of 10:23, 10 May 2026
先用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
就可以了。