![如何禁用隐藏的启动程序?](https://linux22.com/image/1144806/%E5%A6%82%E4%BD%95%E7%A6%81%E7%94%A8%E9%9A%90%E8%97%8F%E7%9A%84%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F%EF%BC%9F.png)
当我重新启动 Xubuntu 时,firefox 随启动而启动。
但是当我进入 Session 和 Startup 的时候,Firefox 却不存在!
输出如下ls /etc/xdg/autostart/
:
at-spi-dbus-bus.desktop onboard-autostart.desktop
baloo_file.desktop pam_kwallet_init.desktop
blueman.desktop plasmashell.desktop
gnome-keyring-pkcs11.desktop polkit-gnome-authentication-agent-1.desktop
gnome-keyring-secrets.desktop polkit-kde-authentication-agent-1.desktop
gnome-keyring-ssh.desktop powerdevil.desktop
gnome-software-service.desktop print-applet.desktop
gsettings-data-convert.desktop pulseaudio.desktop
indicator-application.desktop update-notifier.desktop
indicator-messages.desktop user-dirs-update-gtk.desktop
indicator-sound.desktop xembedsniproxy.desktop
kdeconnectd.desktop xfce4-clipman-plugin-autostart.desktop
klipper.desktop xfce4-notes-autostart.desktop
krunner.desktop xfce4-power-manager.desktop
light-locker.desktop xfce4-volumed.desktop
nautilus-autostart.desktop xfsettingsd.desktop
nm-applet.desktop xscreensaver.desktop
nvidia-settings-autostart.desktop
更新:我稍后尝试了这个命令,但是 Firefox 没有出现:
cd /etc/xdg/autostart/ && sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop
问题是,如何在启动时禁用 Firefox?
答案1
导致启动应用程序的另一个位置是~/.config/autostart
在那个位置我有 firefox.desktop 并且删除该文件后我的问题就解决了。
rm ~/.config/autostart/firefox.desktop