在Linux启动时自动运行命令

问题描述 投票:0回答:1

我有带有Gnome3.30.2 DE的Debian10。我使用以下指令切换到nemo而不是nautilus:https://itsfoss.com/install-nemo-file-manager-ubuntu/(它是为Ubuntu编写的,但无论如何它也与Debian兼容),所以我可以使用桌面图标。 nemo-desktop实用程序是可能的,并且如果我在终端上手动运行它,它可以完美运行。但是,如何配置我的系统,使其在每次启动时自动启动?

linux automation debian boot gnome
1个回答
0
投票

首先,创建~/.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
© www.soinside.com 2019 - 2024. All rights reserved.