繁体   English   中英

在 Linux 启动时自动运行命令 [暂停]

[英]Automatically run a command on Linux startup [on hold]

我有 Debian10 和 Gnome3.30.2 DE。 I switched to nemo instead of nautilus using this instruction: https://itsfoss.com/install-nemo-file-manager-ubuntu/ (it was written for Ubuntu but anyway it works with Debian as well) so I could use desktop icons . 可以使用 nemo-desktop 实用程序,如果我使用终端手动运行它,它可以完美运行。 但是,我如何配置我的系统,让它在我每次启动时自动启动?

首先,创建~/.config/autostart/文件夹(如果不存在)。

然后,为您要在登录时启动的每个程序创建一个~/.config/autostart/my-app-to-startup.desktop文件。

例如,下面是~/.config/autostart/pidgin.desktop文件的样子:

[Desktop Entry]
Type=Application
Exec=pidgin
Hidden=false
X-GNOME-Autostart-enabled=true
Name=pidgin
Comment=instant messenging client

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM